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
{{ message }}
Repository navigation
[animations] - callback (or similar) when user navigates back to closedBuilder #51458
The user opens the second page, enters information which, after navigating back to the first page, must be available on this first page.
Old way
So far, without the animations package, I just put a 'await' before the Navigator.push() and could call the method, which should be executed when the user navigates back, after that statement.
How is that possible with the animations package? The Navigator.push() method is called within a void method, so I can't wait for that. I haven't found any other way to do that so far.
Reacted by Vishesh Handa, enricobenedos, Aengus, Melvin. L. Abraham and Kyryl
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.
Activity
esDotDev commentedon Mar 1, 2020
Also would be nice to somehow get the pop results.
goderbauer commentedon Mar 30, 2020
The action callback supplied to the closedContainer builder could return the Future from Navigator.push:
https://github.com/flutter/packages/blob/c1a2bf88dfd6c2667c50cdfba690279c480a57a6/packages/animations/lib/src/open_container.dart#L224
This should be an easy change.
github-actions commentedon Aug 22, 2021
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of
flutter doctor -vand a minimal reproduction of the issue.