-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Deprecates string for reorderable list in material_localizations #124711
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
Conversation
|
@Piinks I can't think of a way to write dart fixes. I think there are two cases to to I don't think 2 is possible given there may be a lot of corner cases. but even for 1, I am not sure how to correctly capture it |
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.
I agree, this one is difficult to reliably capture with dart fix, but simple enough with a migration guide.
You may be able to fix case 1 by using replacedBy, this dart fix feature has not been used a lot, but was added for this case.
The .of method of MaterialLocalizations would be replacedBy WidgetsLocalizations.
Probably like:
# Changes made in https://github.com/flutter/flutter/pull/124711
- title: "Migrate to ..."
date: ...
element:
uris: [ ...]
method: 'of'
inClass: 'MaterialLocalizations'
changes:
- kind: 'replacedBy'
newElement:
uris: [ ...]
method: 'of'
inClass: 'WidgetLocalizations'|
For case one, I need to make sure they are accessing the deprecating string after the .of(context). For example Is there a condition API for this? |
|
Oh right! 🤦♀️ Nope, dart fix cannot do this. We just examined this with the window deprecations. |
Piinks
left a comment
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 since it is not dart fixable. In that case, we should definitely add a simple migration guide to the website.
Also, I am surprised the bot did not ask for tests. I reached out in the infra channel to see if the bot is ok or OOO. ;)
Manual roll requested by [email protected] flutter/flutter@50171bb...15cb1f8 2023-04-17 [email protected] Fix Chip highlight color isn't drawn on top of the background color (flutter/flutter#124673) 2023-04-17 [email protected] Deprecates string for reorderable list in material_localizations (flutter/flutter#124711) 2023-04-17 [email protected] Fix a null crash in SelectableRegion Widget (flutter/flutter#124736) 2023-04-17 [email protected] Customize color and thickness of connected lines in Stepper.dart (flutter/flutter#122485) 2023-04-17 [email protected] Roll Flutter Engine from 30e1c4308213 to b2d07388ceb6 (7 revisions) (flutter/flutter#124987) 2023-04-17 [email protected] Remove token permissions for coverage. (flutter/flutter#124909) 2023-04-17 [email protected] Roll Packages from e4ec155 to 0277f2a (9 revisions) (flutter/flutter#124972) 2023-04-17 [email protected] Roll Flutter Engine from 360ca05311c8 to 30e1c4308213 (3 revisions) (flutter/flutter#124963) 2023-04-17 [email protected] Roll Flutter Engine from 4a998b73a2df to 360ca05311c8 (2 revisions) (flutter/flutter#124952) 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 Please CC [email protected],[email protected],[email protected] on the revert to ensure that a human is aware of the problem. To file a bug in Packages: https://github.com/flutter/flutter/issues/new/choose To report a problem with the AutoRoller itself, please file a bug: https://bugs.chromium.org/p/skia/issues/entry?template=Autoroller+Bug Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
flutter/flutter#124711 ## Presubmit checklist - [ ] This PR doesn’t contain automatically generated corrections (Grammarly or similar). - [ ] This PR follows the [Google Developer Documentation Style Guidelines](https://developers.google.com/style) — for example, it doesn’t use _i.e._ or _e.g._, and it avoids _I_ and _we_ (first person). - [ ] This PR uses [semantic line breaks](https://github.com/dart-lang/site-shared/blob/master/doc/writing-for-dart-and-flutter-websites.md#semantic-line-breaks) of 80 characters or fewer. --------- Co-authored-by: Shams Zakhour (ignore Sfshaza) <[email protected]> Co-authored-by: Anthony Sansone <[email protected]> Co-authored-by: Khanh Nguyen <[email protected]>
flutter/flutter#124711 ## Presubmit checklist - [ ] This PR doesn’t contain automatically generated corrections (Grammarly or similar). - [ ] This PR follows the [Google Developer Documentation Style Guidelines](https://developers.google.com/style) — for example, it doesn’t use _i.e._ or _e.g._, and it avoids _I_ and _we_ (first person). - [ ] This PR uses [semantic line breaks](https://github.com/dart-lang/site-shared/blob/master/doc/writing-for-dart-and-flutter-websites.md#semantic-line-breaks) of 80 characters or fewer. --------- Co-authored-by: Shams Zakhour (ignore Sfshaza) <[email protected]> Co-authored-by: Anthony Sansone <[email protected]> Co-authored-by: Khanh Nguyen <[email protected]>
Manual roll requested by [email protected] flutter/flutter@50171bb...15cb1f8 2023-04-17 [email protected] Fix Chip highlight color isn't drawn on top of the background color (flutter/flutter#124673) 2023-04-17 [email protected] Deprecates string for reorderable list in material_localizations (flutter/flutter#124711) 2023-04-17 [email protected] Fix a null crash in SelectableRegion Widget (flutter/flutter#124736) 2023-04-17 [email protected] Customize color and thickness of connected lines in Stepper.dart (flutter/flutter#122485) 2023-04-17 [email protected] Roll Flutter Engine from 30e1c4308213 to b2d07388ceb6 (7 revisions) (flutter/flutter#124987) 2023-04-17 [email protected] Remove token permissions for coverage. (flutter/flutter#124909) 2023-04-17 [email protected] Roll Packages from e4ec155 to 0277f2a (9 revisions) (flutter/flutter#124972) 2023-04-17 [email protected] Roll Flutter Engine from 360ca05311c8 to 30e1c4308213 (3 revisions) (flutter/flutter#124963) 2023-04-17 [email protected] Roll Flutter Engine from 4a998b73a2df to 360ca05311c8 (2 revisions) (flutter/flutter#124952) 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 Please CC [email protected],[email protected],[email protected] on the revert to ensure that a human is aware of the problem. To file a bug in Packages: https://github.com/flutter/flutter/issues/new/choose To report a problem with the AutoRoller itself, please file a bug: https://bugs.chromium.org/p/skia/issues/entry?template=Autoroller+Bug Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
deprecates the these strings since they are now moved into widgetslocalizations
migration guide https://github.com/flutter/website/pull/8543/files
Pre-launch Checklist
///).If you need help, consider asking for advice on the #hackers-new channel on Discord.