Skip to content

[go_router_builder] Use a mixin instead of an extension #9275

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

Merged
merged 5 commits into from
Jun 5, 2025

Conversation

StevenSorial
Copy link
Contributor

first step of fixing #106790

This PR changes the generation to use a mixin instead of an extension. The plan is to add the routing methods directly to GoRouteData. An extension won't be able to override the class implementations, so I changed it to a mixin.

I'm not sure about the versioning, so feel free to suggest changes.

Pre-Review Checklist

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

Footnotes

  1. 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

@StevenSorial
Copy link
Contributor Author

@hannah-hyj

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 chunhtai requested a review from hannah-hyj May 19, 2025 17:11
Copy link
Member

@hannah-hyj hannah-hyj left a comment

Choose a reason for hiding this comment

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

LGTM!

@StevenSorial
Copy link
Contributor Author

Thanks for the approval. @hannah-hyj @chunhtai is there something left for this to be merged?
also, can you please take a look at #9277?

@chunhtai chunhtai added the autosubmit Merge PR when tree becomes green via auto submit App label Jun 5, 2025
@auto-submit auto-submit bot merged commit 007e2f1 into flutter:main Jun 5, 2025
80 checks passed
@StevenSorial StevenSorial deleted the extension-to-mixin branch June 5, 2025 21:29
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Jun 6, 2025
github-merge-queue bot pushed a commit to flutter/flutter that referenced this pull request Jun 6, 2025
flutter/packages@ecba2db...974f152

2025-06-06 [email protected] [camera_avfoundation]
Implementation swift migration - part 4 (flutter/packages#9219)
2025-06-05 [email protected] [go_router_builder] Use a mixin
instead of an extension (flutter/packages#9275)
2025-06-05 [email protected] Roll Flutter master to 8b18dde
(flutter/packages#9387)
2025-06-05 [email protected]
[camera_android_camerax] Fixes premature garbage collection of native
objects when app is under memory pressure (flutter/packages#9287)
2025-06-05 [email protected]
[google_maps_flutter_platform_interface] Add a new zIndexInt param to
marker and deprecate zIndex (flutter/packages#9372)
2025-06-05 [email protected]
[camera_android_camerax] Java style improvements (flutter/packages#9234)

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
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.

3 participants