-
Notifications
You must be signed in to change notification settings - Fork 29.8k
Closed
Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work listd: api docsIssues with https://api.flutter.dev/Issues with https://api.flutter.dev/f: material designflutter/packages/flutter/material repository.flutter/packages/flutter/material repository.frameworkflutter/packages/flutter repository. See also f: labels.flutter/packages/flutter repository. See also f: labels.
Description
Follow up to #103529
This is a rare and unfortunate case where we have created a new widget to replace an old one. This type of migration is most painful for developers, so we should provide better help.
Dart fix is not capable of helping here.
ToggleButtons is styled for M2 spec.
SegmentedButtons is style for M3 and the intended replacement for ToggleButtons.
To resolve this issue we should do these things:
- Document on useMaterial3 that it does not apply to ToggleButtons
- Document on ToggleButtons that SegmentedButtons are the M3 coutnerpart and replacement.
- Create a migration guide for https://docs.flutter.dev/release/breaking-changes
- Send a message to flutter-announce mentioning this and including a link to the migration guide
- (Eventually) deprecate ToggleButtons
- This is not clear yet, are we going to maintain M2 and M3 spec after useMaterial3 is on by default?
Metadata
Metadata
Assignees
Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work listd: api docsIssues with https://api.flutter.dev/Issues with https://api.flutter.dev/f: material designflutter/packages/flutter/material repository.flutter/packages/flutter/material repository.frameworkflutter/packages/flutter repository. See also f: labels.flutter/packages/flutter repository. See also f: labels.
Type
Projects
Status
Done (PR merged)