Comments (3)
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.
from fluttie.
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.
from fluttie.
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 >_<
from fluttie.
Related Issues (20)
- Demo app doesn't work
- Suggestion: Merge with lottie-flutter HOT 4
- about images?
- Support merge paths HOT 5
- 楼主,这个是什么问题 HOT 1
- Aspect Ratio of Animation Distorted HOT 1
- Problem with androidX HOT 4
- Failed to build iOS app HOT 5
- Support for web HOT 2
- enableMergePathsForKitKatAndAbove HOT 1
- Build iOS failed
- Some lottiefiles does not work HOT 2
- 在XCode编译时候会找不'fluttie/FluttiePlugin.h' file not found
- 0.5.0版本 IOS 使用无效,安卓正常
- Strange clipping in animation HOT 2
- Desktop support? HOT 1
- Android-java.lang.UnsupportedOperationException: The new embedding does not support the old FlutterView
- Enable Multithreaded Rendering for Android HOT 1
- Frame rate - Speed HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fluttie.