-
Notifications
You must be signed in to change notification settings - Fork 77
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
[Question] - How to restart animation? #1
Comments
Hi @definev - glad you're liking the library! Currently to restart the animation, you can use its controller, which you can get from either foo.animate(
onInit: (controller) => _animController = controller // save off the controller
).fade().slide() // or whatever.
// then later, restart the animation:
_animController.forward(0) I believe (untested) you should also be able to restart the animation a bit more declaratively by assigning a new unique foo.animate(
key: myKey // change the key when you want it to restart.
).fade().slide() In the future, I'd like to add a bit more state-awareness onto |
Thank you, I like the |
I love your package so much it hides almost the boilerplate part. So declarative animation.
I make this effect but I got an issue about restarting the animation.
An animation I'm trying to replicate this animation.
Currently, my implementation is pretty close but I don't know how to restart animation so It's a bit weird.
My reproduce: https://gist.github.com/definev/d1aacf50122f62e79a956eb7245e495c
Screen.Recording.2022-06-10.at.22.15.17.mov
The UI is separated into two-part:
HYNH0059.mp4
My border is regenerating every user increasing depth so it auto animates.
I want to trigger the center to re-animate when changing depth.
The text was updated successfully, but these errors were encountered: