Comments (3)
Can you give more context on how it become bad? Also do you have any expected behavior?
FlutterGifController gifController= FlutterGifController(vsync: this);
// starting frame
final min = 0;
// end by last frame index
final max = 29;
// speed, max / duration = time to show each frame of animation
// example: 29 / 29 = 1s; each frame will be shown 1 sec.
final duration = 29;
gifController.repeat(min: min, max: max, duration: duration);
You have to explicitly pass the min
and max
parameters in order for the gif controller to know on what frame to start and to end. You have to give duration
a value in order to know how long each frame should be displayed.
from flutter_gif.
I dont know this gif min max and duration ,how to set that.
propose It should run automatically by default, but I can set it to change it instead of not running without setting it.
from flutter_gif.
This behaves in different way with debug run and release run.
from flutter_gif.
Related Issues (9)
- How can i play gif only once HOT 1
- Error: The method 'instantiateImageCodec' isn't defined for the class 'PaintingBinding'. HOT 1
- Flutter 3.16.9: The method 'instantiateImageCodec' isn't defined for the class 'PaintingBinding'. HOT 4
- play gif is stumble at ios 14.4.1, other phone is no problem... HOT 1
- Gifs do not load web version mobile
- FileImage is not correctly handled in the cache
- Could not getPixels for frame 0
- Fetching gifs crashs on iPhone 10 and iPad 6 - Out of memory
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 flutter_gif.