-
Notifications
You must be signed in to change notification settings - Fork 10
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
Returning values from screens? #9
Comments
Hi @naiveai. Couldn't you achieve the same result if you use a I can see in that A way around it could be to include an optional user-provided callback function, but it needs some thought put into it. Please let me know if the |
postNavigation is run immediately after the page is navigated to. What I'm talking about is a callback when the navigator page I've just pushed is popped by the user, by pressing the back button. It's what happens when you use .then on the Future returned by a Navigator.push call. |
OK I see now. This will require an API change, most probably not a breaking one. Let me see what I can do. |
Hello, Was there any change for this? I would also love this feature. |
Hi @simkepal unfortunately I didn't have the time to move forward with it, but I will raise its priority and try to have it done as soon as I find the time. |
Is there a way to return a value from a screen like is demonstrated in https://flutter.dev/docs/cookbook/navigation/returning-data? I know sharing data with the store works, but this also enables the important use case of running some function (like a dispatch to update the state using an async action) whenever a page's back button is pressed.
The text was updated successfully, but these errors were encountered: