Closed jdeltoft closed 3 years ago
You can do like this:
AnimatedSplashScreen.withScreenFunction(
splash: 'images/splash.png',
screenFunction: () async{
await myFun();
return MainScreen();
}
)
I ended up following this how to which was really nice.
https://www.flutterclutter.dev/flutter/tutorials/beautiful-animated-splash-screen/2020/1108/
Is there a good example of calling some async function in the background during the spash?