clean-code-dev / animated_splash_screen

The easiest way to create your animated splash screen in a fully customizable way.
MIT License
112 stars 25 forks source link

a way to do some background processing during the splash screen #11

Closed jdeltoft closed 3 years ago

jdeltoft commented 3 years ago

Is there a good example of calling some async function in the background during the spash?

Bestfastfire commented 3 years ago

You can do like this:

AnimatedSplashScreen.withScreenFunction(
  splash: 'images/splash.png',
  screenFunction: () async{
    await myFun();

    return MainScreen();
  }
)
jdeltoft commented 3 years ago

I ended up following this how to which was really nice.

https://www.flutterclutter.dev/flutter/tutorials/beautiful-animated-splash-screen/2020/1108/