-
Notifications
You must be signed in to change notification settings - Fork 29
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
Baranimation gets played twice on a pushed Screen #10
Comments
Can you share your code? I can quickly guess that the issue came from kinds of state management |
This is the screen:
|
I can confirm that the build method only gets called once. |
Did you try not to use Hero animation together? I can see your code is using Stateless so I think the parent widget of FAProgressBar would effect its state |
Yes you are right, removing the hero widget fixed the problem. So how would I get it to work with the hero widget? |
Any news about this? |
@Wizzel1 I have an idea: try to use FutureBuilder to wait for the completion of Hero animated |
Good one, that seems to work. However I did it with an AnimatedSwitcher and a bool like this :
and in the initState add a postFrameCallback like this:
thats working well but out of curiosity, what would a Futurebuilder with your suggested functionality look like? How am I listening for the completion of the hero transition? Anyways thanks for the quick help, really apprechiate it! |
As the title says, the animation looks weird and it seems like it's played twice. What could be the cause to this?
The text was updated successfully, but these errors were encountered: