Skip to content

InnoFlutter/ScrollShooter_Loading

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published