wait for progress animation to finish
This commit is contained in:
@@ -51,6 +51,7 @@ class StatusProvider extends ChangeNotifier {
|
|||||||
|
|
||||||
if (!_stack.contains(Status.syncing)) {
|
if (!_stack.contains(Status.syncing)) {
|
||||||
_stack.add(Status.syncing);
|
_stack.add(Status.syncing);
|
||||||
|
_progress = 0.0;
|
||||||
notifyListeners();
|
notifyListeners();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -61,9 +62,12 @@ class StatusProvider extends ChangeNotifier {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (_progress == 1.0) {
|
if (_progress == 1.0) {
|
||||||
_stack.remove(Status.syncing);
|
|
||||||
_progress = 0.0;
|
|
||||||
notifyListeners();
|
notifyListeners();
|
||||||
|
// Wait for animation
|
||||||
|
Future.delayed(Duration(milliseconds: 250), () {
|
||||||
|
_stack.remove(Status.syncing);
|
||||||
|
notifyListeners();
|
||||||
|
});
|
||||||
} else if (progress != prev) notifyListeners();
|
} else if (progress != prev) notifyListeners();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Submodule filcnaplo_mobile_ui updated: a0dcea3182...2c0d51853d
Reference in New Issue
Block a user