Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Lottie Splash Screen on Flutter

I want to add a Lottie animation for a splash screen before any content launches in my Flutter app. The plugins I've checked out don't completely support all features of the animations yet or don't work as desired.

Is there some way I can add it before the actual flutter activity launches. I want the animation to completely finish, and only then go forward to the main content.

Any help appreciated, thanks!

like image 588
krishnakeshan Avatar asked Mar 26 '19 01:03

krishnakeshan


1 Answers

Currently the Lottie plugins for Flutter do not work that well (hopefully they are improved soon) but what I did for my app is save the animation as a .gif (set repeat to once) which can then natively be displayed in an ImageView, then use a timer to move to the next screen one the animation has finished.

Not the ideal solution but a work around until the plugins have been improved.

like image 197
DevTard Avatar answered Oct 01 '22 10:10

DevTard