fix(deps): removed mentions of riverpod
This commit is contained in:
@@ -1,59 +0,0 @@
|
||||
import 'dart:async';
|
||||
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:markettakers/main.dart';
|
||||
|
||||
class SimpleStage extends StageFactory {
|
||||
final String title = "Test";
|
||||
|
||||
@override
|
||||
Future<bool> get isCompleted async {
|
||||
return false;
|
||||
}
|
||||
|
||||
@override
|
||||
Future<void> start(StageController controller) async {
|
||||
await Future.delayed(Duration(seconds: 2));
|
||||
controller.updateProgress(0.3);
|
||||
controller.updateTitle("test 2");
|
||||
|
||||
await Future.delayed(Duration(seconds: 2));
|
||||
controller.updateProgress(0.6);
|
||||
}
|
||||
}
|
||||
|
||||
class SimpleStage2 extends StageFactory {
|
||||
final String title = "Test 2";
|
||||
|
||||
@override
|
||||
Future<bool> get isCompleted async {
|
||||
return false;
|
||||
}
|
||||
|
||||
@override
|
||||
Future<void> start(StageController controller) async {
|
||||
await Future.delayed(Duration(seconds: 2));
|
||||
controller.updateProgress(0.3);
|
||||
controller.updateTitle("test 5");
|
||||
|
||||
await Future.delayed(Duration(seconds: 2));
|
||||
controller.updateProgress(0.6);
|
||||
}
|
||||
}
|
||||
|
||||
void main() async {
|
||||
WidgetsFlutterBinding.ensureInitialized();
|
||||
init();
|
||||
final completer = Completer<void>();
|
||||
completer.future.then((_) {
|
||||
talker.info("Bootstrapper completed, launching app");
|
||||
});
|
||||
runApp(
|
||||
Scaffold(
|
||||
body: Bootstrapper(
|
||||
stages: [SimpleStage(), SimpleStage2()],
|
||||
onCompleted: completer,
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user