feat(bootstrapper): added definitie/indefinite progress and circular indicator

This commit is contained in:
hdbg
2025-10-10 21:31:06 +02:00
parent 1352fd5513
commit bfcd9fe606
4 changed files with 377 additions and 104 deletions

View File

@@ -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);
}
}