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

FlareControls never stops #251

Closed
sbarbat opened this issue Apr 30, 2020 · 0 comments
Closed

FlareControls never stops #251

sbarbat opened this issue Apr 30, 2020 · 0 comments

Comments

@sbarbat
Copy link

sbarbat commented Apr 30, 2020

FlareControls never stops nor triggers onCompleted()

The problem is line 84 of flare_controls.dart: if (layer.time > layer.animation.duration) { because layer.animation.duration is never lower than layer.time.

In my code fixed it with if (layer.time >= (layer.animation.duration - 0.01)) {

Any better idea on how to fix this? Or should I create a PR straight away with this solution?

@sbarbat sbarbat closed this as completed May 1, 2020
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

1 participant