feat(bootstrapper): added definitie/indefinite progress and circular indicator
This commit is contained in:
@@ -8,18 +8,18 @@ class SimpleStage extends StageFactory {
|
||||
final String title = "Test";
|
||||
|
||||
@override
|
||||
Future<bool> get isCompleted async {
|
||||
Future<bool> get isAlreadyCompleted async {
|
||||
return false;
|
||||
}
|
||||
|
||||
@override
|
||||
Future<void> start(StageController controller) async {
|
||||
await Future.delayed(Duration(seconds: 2));
|
||||
controller.updateProgress(0.3);
|
||||
controller.setDefiniteProgress(0.3);
|
||||
controller.updateTitle("test 2");
|
||||
|
||||
await Future.delayed(Duration(seconds: 2));
|
||||
controller.updateProgress(0.6);
|
||||
controller.setDefiniteProgress(0.6);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -28,18 +28,18 @@ class SimpleStage2 extends StageFactory {
|
||||
final String title = "Test 2";
|
||||
|
||||
@override
|
||||
Future<bool> get isCompleted async {
|
||||
Future<bool> get isAlreadyCompleted async {
|
||||
return false;
|
||||
}
|
||||
|
||||
@override
|
||||
Future<void> start(StageController controller) async {
|
||||
await Future.delayed(Duration(seconds: 2));
|
||||
controller.updateProgress(0.3);
|
||||
controller.setDefiniteProgress(0.3);
|
||||
controller.updateTitle("test 5");
|
||||
|
||||
await Future.delayed(Duration(seconds: 2));
|
||||
controller.updateProgress(0.6);
|
||||
controller.setDefiniteProgress(0.6);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user