simolus3 / fluttie

Easily display stunning Lottie animations in flutter apps with this plugin.
Other
453 stars 54 forks source link

Not Loading animations. #30

Open jameskaguo777 opened 4 years ago

jameskaguo777 commented 4 years ago

I tested fluttie 0.3.0 and fluttie 0.5.0 on my android 10 device but keeps showing loading animation, help what could be wrong? no error just loading to infinite. Could be the mounted state not working properly?

acoutts commented 4 years ago

For what it's worth I found this plugin doesn't work on android now and it doesn't seem to be maintained after the Flutter plugin revamp, because this is using an old method to access the Android View.

I did a lot of digging tonight and I found a workaround:

This tweet shows what it looks like importing the files: https://twitter.com/rive_app/status/1169294765625618432

I was able to get my Lottie animations to play without any issues now on iOS and Android with this combination. Flare ftw!

Make sure you pass in the prop animation: 'your_animation_name_here' so it matches what is displayed in the Rive Flare web editor:

Example, this one should be called 'Untitled' when you reference it in the code. Screenshot_2020-01-25_21-31-41

rafaeljustinox commented 4 years ago

For anyone that are having the same issue, I recomend to use another package. https://pub.dev/packages/lottie It's works very well and have been updated recently.

bianbianzhu commented 4 years ago

For anyone that are having the same issue, I recomend to use another package. https://pub.dev/packages/lottie It's works very well and have been updated recently.

The only issue is that it doesn't support web >_<