feat: better and centralized loading screen
This commit is contained in:
parent
eb83e9fbe3
commit
b751d93be6
11 changed files with 82 additions and 13 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Reference in a new issue