feat: better and centralized loading screen

This commit is contained in:
alzalia1 2025-08-12 23:59:13 +02:00
parent eb83e9fbe3
commit b751d93be6
11 changed files with 82 additions and 13 deletions

View file

@ -28,12 +28,12 @@ class BalViewModel extends ChangeNotifier {
Future<Result<void>> _load() async {
final result1 = await _loadBal();
switch (result1) {
case Error():
return result1;
case Ok():
isLoaded = true;
break;
default:
break;
}
isLoaded = true;
notifyListeners();
return result1;
}