You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First thanks for this great package. I'm using it a lot in my app.
In this use case, I want to implement a basic video recording animation, where the start-to-record action should trigger the circular animation, otherwise the circle should be always full (percent = 1)
The problem is the animation is never triggered with this logic . Looking into your class I can see that the animation controller call forward() in the initState() and also inside didUpdateWidget() according this condition :
if (oldWidget.percent != widget.percent ||
oldWidget.startAngle != widget.startAngle)
In my case I'm not updating the percent because in both situation it must be 1 . Then I tried to fake the 'startAngle' change but nothing happen.
What I am suppose to do ? Going to be crazy sounds like I am missing something in global logic
Thanks in advance for any help
The text was updated successfully, but these errors were encountered:
Nico3652
changed the title
How to reload the animation on demand
How to reload the animation on notify
Nov 20, 2021
First thanks for this great package. I'm using it a lot in my app.
In this use case, I want to implement a basic video recording animation, where the start-to-record action should trigger the circular animation, otherwise the circle should be always full (percent = 1)
Here is my code :
The problem is the animation is never triggered with this logic . Looking into your class I can see that the animation controller call forward() in the
initState()
and also insidedidUpdateWidget()
according this condition :In my case I'm not updating the percent because in both situation it must be 1 . Then I tried to fake the 'startAngle' change but nothing happen.
What I am suppose to do ? Going to be crazy sounds like I am missing something in global logic
Thanks in advance for any help
The text was updated successfully, but these errors were encountered: