Deprecates string for reorderable list in material_localizations - #124711
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.
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.
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 ychris@google.com flutter/flutter@50171bb...15cb1f8 2023-04-17 tessertaha@gmail.com Fix Chip highlight color isn't drawn on top of the background color (flutter/flutter#124673) 2023-04-17 47866232+chunhtai@users.noreply.github.com Deprecates string for reorderable list in material_localizations (flutter/flutter#124711) 2023-04-17 jhy03261997@gmail.com Fix a null crash in SelectableRegion Widget (flutter/flutter#124736) 2023-04-17 54718862+mub-pro@users.noreply.github.com Customize color and thickness of connected lines in Stepper.dart (flutter/flutter#122485) 2023-04-17 engine-flutter-autoroll@skia.org Roll Flutter Engine from 30e1c4308213 to b2d07388ceb6 (7 revisions) (flutter/flutter#124987) 2023-04-17 godofredoc@google.com Remove token permissions for coverage. (flutter/flutter#124909) 2023-04-17 engine-flutter-autoroll@skia.org Roll Packages from e4ec155 to 0277f2a (9 revisions) (flutter/flutter#124972) 2023-04-17 engine-flutter-autoroll@skia.org Roll Flutter Engine from 360ca05311c8 to 30e1c4308213 (3 revisions) (flutter/flutter#124963) 2023-04-17 engine-flutter-autoroll@skia.org 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 rmistry@google.com,stuartmorgan@google.com,ychris@google.com 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) <44418985+sfshaza2@users.noreply.github.com> Co-authored-by: Anthony Sansone <atsansone@users.noreply.github.com> Co-authored-by: Khanh Nguyen <khanhnwin@gmail.com>
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) <44418985+sfshaza2@users.noreply.github.com> Co-authored-by: Anthony Sansone <atsansone@users.noreply.github.com> Co-authored-by: Khanh Nguyen <khanhnwin@gmail.com>
Manual roll requested by ychris@google.com flutter/flutter@50171bb...15cb1f8 2023-04-17 tessertaha@gmail.com Fix Chip highlight color isn't drawn on top of the background color (flutter/flutter#124673) 2023-04-17 47866232+chunhtai@users.noreply.github.com Deprecates string for reorderable list in material_localizations (flutter/flutter#124711) 2023-04-17 jhy03261997@gmail.com Fix a null crash in SelectableRegion Widget (flutter/flutter#124736) 2023-04-17 54718862+mub-pro@users.noreply.github.com Customize color and thickness of connected lines in Stepper.dart (flutter/flutter#122485) 2023-04-17 engine-flutter-autoroll@skia.org Roll Flutter Engine from 30e1c4308213 to b2d07388ceb6 (7 revisions) (flutter/flutter#124987) 2023-04-17 godofredoc@google.com Remove token permissions for coverage. (flutter/flutter#124909) 2023-04-17 engine-flutter-autoroll@skia.org Roll Packages from e4ec155 to 0277f2a (9 revisions) (flutter/flutter#124972) 2023-04-17 engine-flutter-autoroll@skia.org Roll Flutter Engine from 360ca05311c8 to 30e1c4308213 (3 revisions) (flutter/flutter#124963) 2023-04-17 engine-flutter-autoroll@skia.org 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 rmistry@google.com,stuartmorgan@google.com,ychris@google.com 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
Manual roll requested by ychris@google.com flutter/flutter@50171bb...15cb1f8 2023-04-17 tessertaha@gmail.com Fix Chip highlight color isn't drawn on top of the background color (flutter/flutter#124673) 2023-04-17 47866232+chunhtai@users.noreply.github.com Deprecates string for reorderable list in material_localizations (flutter/flutter#124711) 2023-04-17 jhy03261997@gmail.com Fix a null crash in SelectableRegion Widget (flutter/flutter#124736) 2023-04-17 54718862+mub-pro@users.noreply.github.com Customize color and thickness of connected lines in Stepper.dart (flutter/flutter#122485) 2023-04-17 engine-flutter-autoroll@skia.org Roll Flutter Engine from 30e1c4308213 to b2d07388ceb6 (7 revisions) (flutter/flutter#124987) 2023-04-17 godofredoc@google.com Remove token permissions for coverage. (flutter/flutter#124909) 2023-04-17 engine-flutter-autoroll@skia.org Roll Packages from e4ec155 to 0277f2a (9 revisions) (flutter/flutter#124972) 2023-04-17 engine-flutter-autoroll@skia.org Roll Flutter Engine from 360ca05311c8 to 30e1c4308213 (3 revisions) (flutter/flutter#124963) 2023-04-17 engine-flutter-autoroll@skia.org 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 rmistry@google.com,stuartmorgan@google.com,ychris@google.com 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
Manual roll requested by ychris@google.com flutter/flutter@50171bb...15cb1f8 2023-04-17 tessertaha@gmail.com Fix Chip highlight color isn't drawn on top of the background color (flutter/flutter#124673) 2023-04-17 47866232+chunhtai@users.noreply.github.com Deprecates string for reorderable list in material_localizations (flutter/flutter#124711) 2023-04-17 jhy03261997@gmail.com Fix a null crash in SelectableRegion Widget (flutter/flutter#124736) 2023-04-17 54718862+mub-pro@users.noreply.github.com Customize color and thickness of connected lines in Stepper.dart (flutter/flutter#122485) 2023-04-17 engine-flutter-autoroll@skia.org Roll Flutter Engine from 30e1c4308213 to b2d07388ceb6 (7 revisions) (flutter/flutter#124987) 2023-04-17 godofredoc@google.com Remove token permissions for coverage. (flutter/flutter#124909) 2023-04-17 engine-flutter-autoroll@skia.org Roll Packages from 789160c to 0300012 (9 revisions) (flutter/flutter#124972) 2023-04-17 engine-flutter-autoroll@skia.org Roll Flutter Engine from 360ca05311c8 to 30e1c4308213 (3 revisions) (flutter/flutter#124963) 2023-04-17 engine-flutter-autoroll@skia.org 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 rmistry@google.com,stuartmorgan@google.com,ychris@google.com 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.