liquid_progress_indicator
liquid_progress_indicator copied to clipboard
Stop animation
How to stop the animation when I reach the value suppose 70%
Looking forward to this issue
That would be great, any plans on adding this feature?
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();
}