Comments (2)
Hi. It's not possible to set the framerate directly, the plugin will rather figure it out based on what's specified in the composition file.
If you open any of your animation json files (warning: they're huge and thus not fun to edit), you should see an "fr" property in the top level json object encoded there. I think most have a value of 30 there, but you can edit that it if you want to.
However, especially when displaying multiple animations simultaneously, the hardware capability of the device will constrain the framerate, so keep that in mind as something like 60fps will be hard to reach.
Given that you can edit the framerate in the files, I think adding direct support for that in the library is not needed. But please let me know if that'd be helpful for you, it shouldn't be taking long to implement. If editing the file didn't improve the framerate, please also let me know because that would be a bug in the plugin. Thanks!
from fluttie.
I didn't test raising the frame rate since I needed to lower the animation speed, but the change in the json worked like a charm for what I needed.
NOTE: You have to "flutter clean" to discard the asset cache and see the change take effect.
Thanks for your support.
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 使用无效,安卓正常
- Not Loading animations. HOT 3
- 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
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.