minigame_scrollshooter_loadingscreen 0.0.3 minigame_scrollshooter_loadingscreen: ^0.0.3 copied to clipboard
Scroll shooter minigame that can be used as loading screen
ScrollShoter minigame #
This project is a starting and enging point of test for flutter flame lib usability
How to use #
Add ScrollShooterGame in your loading screen so it will be shown until long operation will be finished
class Loading extends StatefulWidget {
const Loading({Key? key}) : super(key: key);
@override
_LoadingState createState() => _LoadingState();
}
class _LoadingState extends State<Loading> {
void prepareStep() async {
// LongOperation instance = LongOperation();
// await instance.make();
await Future.delayed(const Duration(seconds: 15));
Navigator.pushReplacementNamed(context, '/home', arguments: {
'argument1': "something",
});
}
@override
void initState() {
super.initState();
prepareStep();
}
@override
Widget build(BuildContext context) {
return ScrollShooterGame();
}
}