Skip to content
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

feat: expose NavigationPage navigator observers #732

Merged
merged 1 commit into from
Jul 13, 2023
Merged

feat: expose NavigationPage navigator observers #732

merged 1 commit into from
Jul 13, 2023

Conversation

jpnurmi
Copy link
Member

@jpnurmi jpnurmi commented Jul 12, 2023

Continues where #730 and #731 left off. Exposing Navigator.observers allows updating the GUI state when a (search or detail) page is popped off, for example.

@Feichtmeier
Copy link
Member

Uhhhh this sounds nice. Does this also help with preservation of the state of a page if the app is rebuilt via layout/orientation builders?

@jpnurmi jpnurmi changed the title feat: expose NavigationPage.onPopPage feat: expose NavigationPage navigator observer & onPopPage Jul 12, 2023
@jpnurmi
Copy link
Member Author

jpnurmi commented Jul 13, 2023

Do you mean this?

That should be fixable now that the attached example works fine with the latest stable Flutter but this PR is about something else i.e. being able to observe from the outside of NavigationPage what happens in its internal Navigator.

@Feichtmeier
Copy link
Member

Okay that's also nice ok 👍

@jpnurmi jpnurmi changed the title feat: expose NavigationPage navigator observer & onPopPage feat: expose NavigationPage navigator observers Jul 13, 2023
@jpnurmi jpnurmi requested a review from d-loose July 13, 2023 09:48
Copy link
Member

@d-loose d-loose left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

@jpnurmi jpnurmi merged commit 412dd63 into ubuntu:main Jul 13, 2023
9 checks passed
@jpnurmi jpnurmi deleted the navigation-page-on-pop branch July 13, 2023 10:00
@github-actions github-actions bot mentioned this pull request Jul 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants