fluttie icon indicating copy to clipboard operation
fluttie copied to clipboard

Not Loading animations.

Open jameskaguo777 opened this issue 5 years ago • 3 comments

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?

jameskaguo777 avatar Dec 31 '19 13:12 jameskaguo777

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:

  • Use the flare-flutter library to load Flare animations: https://github.com/2d-inc/Flare-Flutter
  • Use the free online editor here to convert your Lottie JSON files into Flare JSON files: https://rive.app/

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

acoutts avatar Jan 26 '20 02:01 acoutts

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.

rafaeljustinox avatar May 01 '20 19:05 rafaeljustinox

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 >_<

bianbianzhu avatar Jun 01 '20 01:06 bianbianzhu