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

[go_router_builder] add support to go_router_builder for initializing a StatefulShellBranch with observers #5865

Merged
merged 4 commits into from
Apr 25, 2024

Conversation

satoyan
Copy link
Contributor

@satoyan satoyan commented Jan 11, 2024

This pr added the ability to provide a list of NavigatorObservers to a StatefulShellBranch.
The equivalent was never added to go_router_builder, so this pr provides that functionality.

With this change, you can provide NavigatorObservers directly to the StatefulShellBranch and fix flutter/flutter#143869.

Pre-launch Checklist

  • I read the Contributor Guide and followed the process outlined there for submitting PRs.
  • I read the Tree Hygiene wiki page, which explains my responsibilities.
  • I read and followed the relevant style guides and ran the auto-formatter. (Unlike the flutter/flutter repo, the flutter/packages repo does use dart format.)
  • I signed the CLA.
  • The title of the PR starts with the name of the package surrounded by square brackets, e.g. [shared_preferences]
  • I listed at least one issue that this PR fixes in the description above.
  • I updated pubspec.yaml with an appropriate new version according to the pub versioning philosophy, or this PR is exempt from version changes.
  • I updated CHANGELOG.md to add a description of the change, following repository CHANGELOG style.
  • I updated/added relevant documentation (doc comments with ///).
  • I added new tests to check the change I am making, or this PR is test-exempt.
  • All existing and new tests are passing.

If you need help, consider asking for advice on the #hackers-new channel on Discord.

Copy link

google-cla bot commented Jan 11, 2024

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@satoyan satoyan marked this pull request as ready for review January 11, 2024 03:21
@satoyan
Copy link
Contributor Author

satoyan commented Jan 11, 2024

or anyone else create PR instead of me, please! 🙏

@hangyujin
Copy link
Contributor

Hi @satoyan , thank you for your contribution, can you also add tests to this pr?

@satoyan
Copy link
Contributor Author

satoyan commented Jan 13, 2024

Thank you for your replying! I added some test cases and update version to pass CI.
Please tell me anything else I need to do 🙇
thank you.
@hangyujin

@satoyan satoyan changed the title add support to go_router_builder for initializing a StatefulShellBranch with observers [go_router_builder] add support to go_router_builder for initializing a StatefulShellBranch with observers Jan 18, 2024
Copy link
Contributor

@hangyujin hangyujin left a comment

Choose a reason for hiding this comment

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

LGTM, thank you

@hangyujin
Copy link
Contributor

hangyujin commented Feb 2, 2024

@johnpryan Hi John, can you take a second look at this since chun-heng is on vacation ?

Copy link
Contributor

@chunhtai chunhtai left a comment

Choose a reason for hiding this comment

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

LGTM

@chunhtai
Copy link
Contributor

chunhtai commented Apr 8, 2024

looks like there is a conflict and ci failing, can you fix them?

add flutter dependency same as go_router to pubspec.yaml as well because test
cases added required some type definitions from flutter.
Copy link
Contributor

@chunhtai chunhtai left a comment

Choose a reason for hiding this comment

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

Looks like ci expecting fluter >= 3.13.0. can you update it

@chunhtai chunhtai added the autosubmit Merge PR when tree becomes green via auto submit App label Apr 25, 2024
@auto-submit auto-submit bot merged commit 981c1d5 into flutter:main Apr 25, 2024
78 checks passed
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Apr 26, 2024
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Apr 26, 2024
auto-submit bot pushed a commit to flutter/flutter that referenced this pull request Apr 26, 2024
flutter/packages@fde908d...dd01140

2024-04-26 engine-flutter-autoroll@skia.org Roll Flutter from 5d3bca4 to 2e80670 (20 revisions) (flutter/packages#6616)
2024-04-26 49699333+dependabot[bot]@users.noreply.github.com Bump github/codeql-action from 3.25.2 to 3.25.3 (flutter/packages#6615)
2024-04-25 elitree@gmail.com [go_router] Update redirect documentation example code for clarity (flutter/packages#6213)
2024-04-25 satoyanxp@gmail.com [go_router_builder] add support to go_router_builder for initializing a StatefulShellBranch with observers (flutter/packages#5865)
2024-04-25 engine-flutter-autoroll@skia.org Roll Flutter from dba4f77 to 5d3bca4 (17 revisions) (flutter/packages#6612)

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 flutter-ecosystem@google.com,rmistry@google.com 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
TecHaxter pushed a commit to TecHaxter/flutter_packages that referenced this pull request May 22, 2024
… a StatefulShellBranch with observers (flutter#5865)

This pr added the ability to provide a list of NavigatorObservers to a StatefulShellBranch. 
The equivalent was never added to go_router_builder, so this pr provides that functionality.

With this change, you can provide NavigatorObservers directly to the StatefulShellBranch and fix flutter/flutter#143869.
arc-yong pushed a commit to Arctuition/packages-arc that referenced this pull request Jun 14, 2024
… a StatefulShellBranch with observers (flutter#5865)

This pr added the ability to provide a list of NavigatorObservers to a StatefulShellBranch. 
The equivalent was never added to go_router_builder, so this pr provides that functionality.

With this change, you can provide NavigatorObservers directly to the StatefulShellBranch and fix flutter/flutter#143869.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
autosubmit Merge PR when tree becomes green via auto submit App p: go_router_builder
Projects
None yet
Development

Successfully merging this pull request may close these issues.

go_router_builder does not add observers to StatefulShellBranchData
4 participants