jaumard / flare_splash_screen

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

until not working #18

Closed orgio closed 4 years ago

orgio commented 4 years ago

SplashScreen.navigate( name: "assets/splash.flr", next:(_)=>MyHomePage(color,json) , until: ()=>Future.delayed(Duration(seconds: 1)), fit: BoxFit.cover, startAnimation: "intro", )

orgio commented 4 years ago

it takes 3 second which is my animation duration

jaumard commented 4 years ago

That is the correct behavior :) if your animation is more than until it wait until the end of animation, if not the animation is looping until "until" is done

orgio commented 4 years ago

thank you so much there is one more thing Navigator is not working inside MaterialApp do you know any solution?

jaumard commented 4 years ago

hum not sure I understand correctly do you have an example of the problem ?

orgio commented 4 years ago

Capture

jaumard commented 4 years ago

Ho I see ! that's normal, if you want this to work you need to wrap SplashScreen with a Builder widget, then it should work. Cheers

orgio commented 4 years ago

thank you so much nice guy