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

Stop animation #10

Open
AhmedAlbashaDev opened this issue Aug 17, 2020 · 3 comments
Open

Stop animation #10

AhmedAlbashaDev opened this issue Aug 17, 2020 · 3 comments
Labels
enhancement New feature or request

Comments

@AhmedAlbashaDev
Copy link

How to stop the animation when I reach the value suppose 70%

@luis-cruzt
Copy link

Looking forward to this issue

@loonix
Copy link

loonix commented Aug 27, 2020

That would be great, any plans on adding this feature?

@JordanADavies JordanADavies added the enhancement New feature or request label Oct 13, 2020
@idrisyagci
Copy link

idrisyagci commented Dec 3, 2020

You can stop the animation like below.

@OverRide
void initState() {
super.initState();
_animationController = AnimationController(
vsync: this,
duration: Duration(seconds: 10),
);

_animationController.addListener(() => setState(() {
  _animationController.value > 0.7 ? _animationController.stop() : _animationController.repeat();
}));
_animationController.repeat();

}

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

No branches or pull requests

5 participants