-
Notifications
You must be signed in to change notification settings - Fork 29.8k
Deprecate ButtonBar, ButtonBarThemeData, and ThemeData.buttonBarTheme
#145523
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
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.
Just throwing this idea out there since OverflowBar does not have a theme, do you think there is any value in refactoring ButtonBar to use the OverflowBar internally?
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.
Ah! Just when ThemeData was clear! 😆
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.
Haha yes, i saw your comment here when I had to restore all the deprecation sections with comments.
This is an interesting idea, we can could keep the widget and make it customizable with the FYI, over time all The |
|
Thank Taha for considering the keep-it path and the additional context. We discussed a bit more offline and it makes more sense to deprecate this. 👍 Just wanted to be extra considerate before we did so. |
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.
Just the TBDs in the fix data files are left to fill in here, otherwise, this LGTM! We can land the migration guide once this is in.
…uttonBarTheme` (flutter/flutter#145523)
Manual roll requested by tarrinneal@google.com flutter/flutter@9d32f07...7fa932b 2024-04-01 engine-flutter-autoroll@skia.org Roll Flutter Engine from e6f19409b613 to ea93c5d91b12 (3 revisions) (flutter/flutter#146100) 2024-04-01 103135467+sealesj@users.noreply.github.com Refactor realm_checker (flutter/flutter#145905) 2024-04-01 kallentu@google.com Add info strings to code blocks. (flutter/flutter#146085) 2024-04-01 sokolovskyi.konstantin@gmail.com Add test for animated_container.0.dart API example. (flutter/flutter#145995) 2024-04-01 engine-flutter-autoroll@skia.org Roll Flutter Engine from 8dff6b833fe2 to e6f19409b613 (2 revisions) (flutter/flutter#146093) 2024-04-01 engine-flutter-autoroll@skia.org Roll Flutter Engine from d33666d90916 to 8dff6b833fe2 (3 revisions) (flutter/flutter#146087) 2024-04-01 katelovett@google.com Fix SliverMainAxisGroup layout in reverse (flutter/flutter#145572) 2024-04-01 engine-flutter-autoroll@skia.org Roll Flutter Engine from dd4f5cd5c9d5 to d33666d90916 (3 revisions) (flutter/flutter#146083) 2024-04-01 engine-flutter-autoroll@skia.org Roll Packages from 51faaa1 to d5aff19 (3 revisions) (flutter/flutter#146081) 2024-04-01 102401667+Dimilkalathiya@users.noreply.github.com Fixes some gesture recognizers are not disposed. (flutter/flutter#146072) 2024-04-01 barpac02@gmail.com Flutter Gradle Plugin: add versionName and versionCode to FlutterExtension (flutter/flutter#146044) 2024-04-01 engine-flutter-autoroll@skia.org Roll Flutter Engine from bf348cd73d49 to dd4f5cd5c9d5 (1 revision) (flutter/flutter#146071) 2024-04-01 engine-flutter-autoroll@skia.org Roll Flutter Engine from 984a78b04671 to bf348cd73d49 (1 revision) (flutter/flutter#146065) 2024-04-01 tessertaha@gmail.com Deprecate `ButtonBar`, `ButtonBarThemeData`, and `ThemeData.buttonBarTheme` (flutter/flutter#145523) 2024-04-01 tessertaha@gmail.com Add `DataColumn.headingRowAlignment ` for `DataTable` (flutter/flutter#144006) 2024-04-01 engine-flutter-autoroll@skia.org Roll Flutter Engine from e9d35f8bfbe2 to 984a78b04671 (2 revisions) (flutter/flutter#146062) 2024-04-01 engine-flutter-autoroll@skia.org Roll Flutter Engine from 4f6b832c8e33 to e9d35f8bfbe2 (1 revision) (flutter/flutter#146060) 2024-03-31 engine-flutter-autoroll@skia.org Roll Flutter Engine from 9689390986b7 to 4f6b832c8e33 (1 revision) (flutter/flutter#146055) 2024-03-31 engine-flutter-autoroll@skia.org Roll Flutter Engine from 34081fea4d59 to 9689390986b7 (1 revision) (flutter/flutter#146053) 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 bmparr@google.com,rmistry@google.com,stuartmorgan@google.com,tarrinneal@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://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
Related to flutter/flutter#145523 ## Presubmit checklist - [x] This PR doesn’t contain automatically generated corrections (Grammarly or similar). - [x] 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). - [x] This PR uses [semantic line breaks](https://github.com/dart-lang/site-shared/blob/main/doc/writing-for-dart-and-flutter-websites.md#semantic-line-breaks) of 80 characters or fewer. --------- Co-authored-by: Kate Lovett <katelovett@google.com> Co-authored-by: Shams Zakhour (ignore Sfshaza) <44418985+sfshaza2@users.noreply.github.com>
Related to flutter/flutter#145523 ## Presubmit checklist - [x] This PR doesn’t contain automatically generated corrections (Grammarly or similar). - [x] 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). - [x] This PR uses [semantic line breaks](https://github.com/dart-lang/site-shared/blob/main/doc/writing-for-dart-and-flutter-websites.md#semantic-line-breaks) of 80 characters or fewer. --------- Co-authored-by: Kate Lovett <katelovett@google.com> Co-authored-by: Shams Zakhour (ignore Sfshaza) <44418985+sfshaza2@users.noreply.github.com>
) Manual roll requested by tarrinneal@google.com flutter/flutter@9d32f07...7fa932b 2024-04-01 engine-flutter-autoroll@skia.org Roll Flutter Engine from e6f19409b613 to ea93c5d91b12 (3 revisions) (flutter/flutter#146100) 2024-04-01 103135467+sealesj@users.noreply.github.com Refactor realm_checker (flutter/flutter#145905) 2024-04-01 kallentu@google.com Add info strings to code blocks. (flutter/flutter#146085) 2024-04-01 sokolovskyi.konstantin@gmail.com Add test for animated_container.0.dart API example. (flutter/flutter#145995) 2024-04-01 engine-flutter-autoroll@skia.org Roll Flutter Engine from 8dff6b833fe2 to e6f19409b613 (2 revisions) (flutter/flutter#146093) 2024-04-01 engine-flutter-autoroll@skia.org Roll Flutter Engine from d33666d90916 to 8dff6b833fe2 (3 revisions) (flutter/flutter#146087) 2024-04-01 katelovett@google.com Fix SliverMainAxisGroup layout in reverse (flutter/flutter#145572) 2024-04-01 engine-flutter-autoroll@skia.org Roll Flutter Engine from dd4f5cd5c9d5 to d33666d90916 (3 revisions) (flutter/flutter#146083) 2024-04-01 engine-flutter-autoroll@skia.org Roll Packages from 51faaa1 to d5aff19 (3 revisions) (flutter/flutter#146081) 2024-04-01 102401667+Dimilkalathiya@users.noreply.github.com Fixes some gesture recognizers are not disposed. (flutter/flutter#146072) 2024-04-01 barpac02@gmail.com Flutter Gradle Plugin: add versionName and versionCode to FlutterExtension (flutter/flutter#146044) 2024-04-01 engine-flutter-autoroll@skia.org Roll Flutter Engine from bf348cd73d49 to dd4f5cd5c9d5 (1 revision) (flutter/flutter#146071) 2024-04-01 engine-flutter-autoroll@skia.org Roll Flutter Engine from 984a78b04671 to bf348cd73d49 (1 revision) (flutter/flutter#146065) 2024-04-01 tessertaha@gmail.com Deprecate `ButtonBar`, `ButtonBarThemeData`, and `ThemeData.buttonBarTheme` (flutter/flutter#145523) 2024-04-01 tessertaha@gmail.com Add `DataColumn.headingRowAlignment ` for `DataTable` (flutter/flutter#144006) 2024-04-01 engine-flutter-autoroll@skia.org Roll Flutter Engine from e9d35f8bfbe2 to 984a78b04671 (2 revisions) (flutter/flutter#146062) 2024-04-01 engine-flutter-autoroll@skia.org Roll Flutter Engine from 4f6b832c8e33 to e9d35f8bfbe2 (1 revision) (flutter/flutter#146060) 2024-03-31 engine-flutter-autoroll@skia.org Roll Flutter Engine from 9689390986b7 to 4f6b832c8e33 (1 revision) (flutter/flutter#146055) 2024-03-31 engine-flutter-autoroll@skia.org Roll Flutter Engine from 34081fea4d59 to 9689390986b7 (1 revision) (flutter/flutter#146053) 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 bmparr@google.com,rmistry@google.com,stuartmorgan@google.com,tarrinneal@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://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
fixes Deprecate
ButtonBarCode sample
expand to view the code sample
Data driven fix
Before executing
dart fix --applyAfter executing
dart fix --applyPre-launch Checklist
///).If you need help, consider asking for advice on the #hackers-new channel on Discord.