Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Why not play automatically #5

Open
tudosxxx opened this issue Feb 22, 2023 · 3 comments
Open

Why not play automatically #5

tudosxxx opened this issue Feb 22, 2023 · 3 comments

Comments

@tudosxxx
Copy link

Time must be set?It‘s bad

@fernan542
Copy link

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.

@tudosxxx
Copy link
Author

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.

@razzinfinity
Copy link

This behaves in different way with debug run and release run.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants