jaumard / flare_splash_screen

Facilitator for having a Splash Screen with a Flare animation
MIT License
95 stars 20 forks source link

still shows the white splash screen! #22

Closed hewa-jalal closed 4 years ago

hewa-jalal commented 4 years ago

i am using the splash flare animation screen like this

MaterialApp(
        home: SplashScreen.navigate(
          name: 'assets/splash.flr',
          next: (context) => WelcomePage(),
          until: () => Future.delayed(
            Duration(milliseconds: 4),
          ),
          startAnimation: '0',
          endAnimation: '4',
          loopAnimation: 'splash',
        ),
      )

but it still shows the initial white screen then the animation, how can this be fixed?

jaumard commented 4 years ago

If you don't want to the initial white screen you need to add a native splash screen by editing LaunchScreen on iOS and launch_background.xml on android.

You can't have the flare splashscreen directly as flutter need time to initialized. On my app I generally put the first frame of the animation as native splashscreen to have smooth transition between the two splash screen