Open jameskaguo777 opened 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:
flare-flutter
library to load Flare animations: https://github.com/2d-inc/Flare-FlutterThis 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.
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.
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 >_<
I tested
fluttie 0.3.0
andfluttie 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?