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

Remove RouteSetting.copyWith #113860

Merged
merged 1 commit into from Oct 27, 2022
Merged

Remove RouteSetting.copyWith #113860

merged 1 commit into from Oct 27, 2022

Conversation

chunhtai
Copy link
Contributor

@chunhtai chunhtai commented Oct 21, 2022

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

  • 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 Flutter Style Guide, including Features we expect every widget to implement.
  • I signed the CLA.
  • I listed at least one issue that this PR fixes in the description above.
  • 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.

@flutter-dashboard flutter-dashboard bot added f: routes Navigator, Router, and related APIs. framework flutter/packages/flutter repository. See also f: labels. labels Oct 21, 2022
Copy link
Member

@goderbauer goderbauer left a comment

Choose a reason for hiding this comment

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

LGTM

@goderbauer
Copy link
Member

Is this used in google3?

@chunhtai
Copy link
Contributor Author

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

chunhtai added a commit to flutter/website that referenced this pull request Oct 26, 2022
@chunhtai chunhtai added the autosubmit Merge PR when tree becomes green via auto submit App label Oct 27, 2022
@chunhtai
Copy link
Contributor Author

upstream migration https://critique.corp.google.com/cl/484006186
migration guide flutter/website#7694

@auto-submit auto-submit bot merged commit c6f6095 into flutter:master Oct 27, 2022
66 checks passed
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Oct 28, 2022
engine-flutter-autoroll added a commit to engine-flutter-autoroll/plugins that referenced this pull request Oct 28, 2022
engine-flutter-autoroll added a commit to engine-flutter-autoroll/plugins that referenced this pull request Oct 28, 2022
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Oct 28, 2022
engine-flutter-autoroll added a commit to engine-flutter-autoroll/plugins that referenced this pull request Oct 28, 2022
liangxianzhe pushed a commit to liangxianzhe/flutter that referenced this pull request Nov 1, 2022
sfshaza2 added a commit to flutter/website that referenced this pull request Nov 1, 2022
* 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>
leighajarett pushed a commit to vandadnp/flutter-website that referenced this pull request Nov 8, 2022
* 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>
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 f: routes Navigator, Router, and related APIs. framework flutter/packages/flutter repository. See also f: labels.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants