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
Remove RouteSetting.copyWith #113860
Remove RouteSetting.copyWith #113860
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Is this used in google3? |
yes it is used internally, they are used in onGenerateRoute which is probably easy to migrate. I still think we should remove it so that we don't create a foot gun for page subclasses. I will prepare for an internal migration |
needs to wait for pr to land flutter/flutter#113860
upstream migration https://critique.corp.google.com/cl/484006186 |
* Create migration guide for RouteSettings.copywith needs to wait for pr to land flutter/flutter#113860 * Update routesettings-copywith-migration.md * Update routesettings-copywith-migration.md * Update routesettings-copywith-migration.md * Update routesettings-copywith-migration.md * Update src/release/breaking-changes/routesettings-copywith-migration.md Co-authored-by: Shams Zakhour (ignore Sfshaza) <44418985+sfshaza2@users.noreply.github.com> * Update src/release/breaking-changes/routesettings-copywith-migration.md Co-authored-by: Shams Zakhour (ignore Sfshaza) <44418985+sfshaza2@users.noreply.github.com> * Update src/release/breaking-changes/routesettings-copywith-migration.md Co-authored-by: Shams Zakhour (ignore Sfshaza) <44418985+sfshaza2@users.noreply.github.com> * Update src/release/breaking-changes/routesettings-copywith-migration.md Co-authored-by: Shams Zakhour (ignore Sfshaza) <44418985+sfshaza2@users.noreply.github.com> * add to index Co-authored-by: Shams Zakhour (ignore Sfshaza) <44418985+sfshaza2@users.noreply.github.com> Co-authored-by: Anthony Sansone <atsansone@users.noreply.github.com>
* Create migration guide for RouteSettings.copywith needs to wait for pr to land flutter/flutter#113860 * Update routesettings-copywith-migration.md * Update routesettings-copywith-migration.md * Update routesettings-copywith-migration.md * Update routesettings-copywith-migration.md * Update src/release/breaking-changes/routesettings-copywith-migration.md Co-authored-by: Shams Zakhour (ignore Sfshaza) <44418985+sfshaza2@users.noreply.github.com> * Update src/release/breaking-changes/routesettings-copywith-migration.md Co-authored-by: Shams Zakhour (ignore Sfshaza) <44418985+sfshaza2@users.noreply.github.com> * Update src/release/breaking-changes/routesettings-copywith-migration.md Co-authored-by: Shams Zakhour (ignore Sfshaza) <44418985+sfshaza2@users.noreply.github.com> * Update src/release/breaking-changes/routesettings-copywith-migration.md Co-authored-by: Shams Zakhour (ignore Sfshaza) <44418985+sfshaza2@users.noreply.github.com> * add to index Co-authored-by: Shams Zakhour (ignore Sfshaza) <44418985+sfshaza2@users.noreply.github.com> Co-authored-by: Anthony Sansone <atsansone@users.noreply.github.com>
I am not sure how this can be useful, it is probably a relic that was forgotten during the nav refactoring. This also didn't work well since we introduced page class. Removing it and see if we will run into any breaking change
Pre-launch Checklist
///
).If you need help, consider asking for advice on the #hackers-new channel on Discord.