[go_router] ShellRoute will merge GoRouter's observers#9436
Merged
auto-submit[bot] merged 24 commits intoflutter:mainfrom Nov 5, 2025
Merged
[go_router] ShellRoute will merge GoRouter's observers#9436auto-submit[bot] merged 24 commits intoflutter:mainfrom
auto-submit[bot] merged 24 commits intoflutter:mainfrom
Conversation
chunhtai
reviewed
Jun 17, 2025
…observers through context
Contributor
|
@huanghui1998hhh FYI you have some conflicts on this PR. |
Contributor
|
@huanghui1998hhh Some merge conflicts and a failure still on here FYI. |
|
Just wondering what the status of this is? We have some issues caused by the bug this PR fixes. Happy to help if there's anything I could do to help this get merged. |
Contributor
|
Since this is a draft we have not been actively reviewing it, @huanghui1998hhh when you are ready for another review, you can mark the PR 'ready for review'. :) |
Contributor
Author
|
Need more advice on the implementation details. Especially in this case. This feature is highly requested. We need to properly track page navigation within ShellRoute. |
chunhtai
reviewed
Oct 20, 2025
2. rename `mergeObservers` to `notifyRootObserver` 3. set `notifyRootObserver`'s default value to `true`
Contributor
|
Can you add a breaking change doc for this?
|
chunhtai
reviewed
Oct 22, 2025
parlough
pushed a commit
to flutter/website
that referenced
this pull request
Oct 22, 2025
…12584) GoRouter v17 BC document. About flutter/packages#9436
Co-authored-by: chunhtai <[email protected]>
Co-authored-by: chunhtai <[email protected]>
Co-authored-by: chunhtai <[email protected]>
…ShellRoute.notifyRootObserver` instead
engine-flutter-autoroll
added a commit
to engine-flutter-autoroll/flutter
that referenced
this pull request
Nov 5, 2025
engine-flutter-autoroll
added a commit
to engine-flutter-autoroll/flutter
that referenced
this pull request
Nov 5, 2025
engine-flutter-autoroll
added a commit
to engine-flutter-autoroll/flutter
that referenced
this pull request
Nov 6, 2025
github-merge-queue bot
pushed a commit
to flutter/flutter
that referenced
this pull request
Nov 6, 2025
flutter/packages@3d926aa...f13bad3 2025-11-06 [email protected] Add Linux CODEOWNERS (flutter/packages#10235) 2025-11-06 [email protected] [ci] Add missing deps (flutter/packages#10366) 2025-11-05 [email protected] [go_router] ShellRoute will merge GoRouter's observers (flutter/packages#9436) 2025-11-05 [email protected] [pigeon] Update analyzer version (flutter/packages#10352) 2025-11-04 [email protected] [tool] Remove use of FETCH_HEAD (flutter/packages#10357) 2025-11-04 [email protected] Roll Flutter from 027f2e4 to e5d5c01 (73 revisions) (flutter/packages#10362) 2025-11-04 8490712[email protected] [camera_platform_interface] Adds support for video stabilization to camera_platform_interface (flutter/packages#10337) 2025-11-04 [email protected] [google_maps_flutter] Raise `MapUsedAfterWidgetDisposedError` when map controller used after map disposed (flutter/packages#9242) 2025-11-04 [email protected] [pigeon] Replace containsKey with contains in Kotlin generator (flutter/packages#10274) 2025-11-04 [email protected] [video_player] Remove `package` in example `AndroidManifest.xml` file (flutter/packages#10245) 2025-11-04 [email protected] [flutter_svg] Fixes typo of `allowDrawingOutsideViewBox` in doc comments. (flutter/packages#10256) 2025-11-04 [email protected] [in_app_purchase] Remove use of Pigeon's Dart test generator (flutter/packages#10328) If this roll has caused a breakage, revert this CL and stop the roller using the controls here: https://autoroll.skia.org/r/flutter-packages-flutter-autoroll Please CC [email protected] on the revert to ensure that a human is aware of the problem. To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose To report a problem with the AutoRoller itself, please file a bug: https://issues.skia.org/issues/new?component=1389291&template=1850622 Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
IvoneDjaja
pushed a commit
to IvoneDjaja/flutter
that referenced
this pull request
Nov 22, 2025
flutter/packages@3d926aa...f13bad3 2025-11-06 [email protected] Add Linux CODEOWNERS (flutter/packages#10235) 2025-11-06 [email protected] [ci] Add missing deps (flutter/packages#10366) 2025-11-05 [email protected] [go_router] ShellRoute will merge GoRouter's observers (flutter/packages#9436) 2025-11-05 [email protected] [pigeon] Update analyzer version (flutter/packages#10352) 2025-11-04 [email protected] [tool] Remove use of FETCH_HEAD (flutter/packages#10357) 2025-11-04 [email protected] Roll Flutter from 027f2e4 to e5d5c01 (73 revisions) (flutter/packages#10362) 2025-11-04 8490712[email protected] [camera_platform_interface] Adds support for video stabilization to camera_platform_interface (flutter/packages#10337) 2025-11-04 [email protected] [google_maps_flutter] Raise `MapUsedAfterWidgetDisposedError` when map controller used after map disposed (flutter/packages#9242) 2025-11-04 [email protected] [pigeon] Replace containsKey with contains in Kotlin generator (flutter/packages#10274) 2025-11-04 [email protected] [video_player] Remove `package` in example `AndroidManifest.xml` file (flutter/packages#10245) 2025-11-04 [email protected] [flutter_svg] Fixes typo of `allowDrawingOutsideViewBox` in doc comments. (flutter/packages#10256) 2025-11-04 [email protected] [in_app_purchase] Remove use of Pigeon's Dart test generator (flutter/packages#10328) If this roll has caused a breakage, revert this CL and stop the roller using the controls here: https://autoroll.skia.org/r/flutter-packages-flutter-autoroll Please CC [email protected] on the revert to ensure that a human is aware of the problem. To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose To report a problem with the AutoRoller itself, please file a bug: https://issues.skia.org/issues/new?component=1389291&template=1850622 Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
reidbaker
pushed a commit
to AbdeMohlbi/flutter
that referenced
this pull request
Dec 10, 2025
flutter/packages@3d926aa...f13bad3 2025-11-06 [email protected] Add Linux CODEOWNERS (flutter/packages#10235) 2025-11-06 [email protected] [ci] Add missing deps (flutter/packages#10366) 2025-11-05 [email protected] [go_router] ShellRoute will merge GoRouter's observers (flutter/packages#9436) 2025-11-05 [email protected] [pigeon] Update analyzer version (flutter/packages#10352) 2025-11-04 [email protected] [tool] Remove use of FETCH_HEAD (flutter/packages#10357) 2025-11-04 [email protected] Roll Flutter from 027f2e4 to e5d5c01 (73 revisions) (flutter/packages#10362) 2025-11-04 8490712[email protected] [camera_platform_interface] Adds support for video stabilization to camera_platform_interface (flutter/packages#10337) 2025-11-04 [email protected] [google_maps_flutter] Raise `MapUsedAfterWidgetDisposedError` when map controller used after map disposed (flutter/packages#9242) 2025-11-04 [email protected] [pigeon] Replace containsKey with contains in Kotlin generator (flutter/packages#10274) 2025-11-04 [email protected] [video_player] Remove `package` in example `AndroidManifest.xml` file (flutter/packages#10245) 2025-11-04 [email protected] [flutter_svg] Fixes typo of `allowDrawingOutsideViewBox` in doc comments. (flutter/packages#10256) 2025-11-04 [email protected] [in_app_purchase] Remove use of Pigeon's Dart test generator (flutter/packages#10328) If this roll has caused a breakage, revert this CL and stop the roller using the controls here: https://autoroll.skia.org/r/flutter-packages-flutter-autoroll Please CC [email protected] on the revert to ensure that a human is aware of the problem. To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose To report a problem with the AutoRoller itself, please file a bug: https://issues.skia.org/issues/new?component=1389291&template=1850622 Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
ShellRoutecurrently does not triggerobserversdefined inGoRouter, which is unexpected behavior.Fixes flutter/flutter#112196
Pre-Review Checklist
[shared_preferences]pubspec.yamlwith an appropriate new version according to the pub versioning philosophy, or I have commented below to indicate which version change exemption this PR falls under1.CHANGELOG.mdto add a description of the change, following repository CHANGELOG style, or I have commented below to indicate which CHANGELOG exemption this PR falls under1.///).If you need help, consider asking for advice on the #hackers-new channel on Discord.
Footnotes
Regular contributors who have demonstrated familiarity with the repository guidelines only need to comment if the PR is not auto-exempted by repo tooling. ↩ ↩2 ↩3