Migrate Chips to Material 3#107166
Migrate Chips to Material 3#107166darrenaustin merged 1 commit intoflutter:masterfrom darrenaustin:m3_chip
Conversation
| child: result, | ||
| ), | ||
| ); | ||
| // if (height != null) { |
There was a problem hiding this comment.
Looks like this should be removed.
There was a problem hiding this comment.
Yup, I had deleted it, but perhaps it snuck back in with a merge I was doing.
| const _TokenDefaultsM3(this.context, this.isEnabled) | ||
| : super( | ||
| elevation: 0.0, | ||
| shape: const RoundedRectangleBorder(borderRadius: BorderRadius.only(topLeft: Radius.circular(8.0), topRight: Radius.circular(8.0), bottomLeft: Radius.circular(8.0), bottomRight: Radius.circular(8.0))), |
There was a problem hiding this comment.
Could be BorderRadius.all(Radius.circular(8))
There was a problem hiding this comment.
Yup, this is a generator problem. One that will be fixed with the BottomAppBar PR.
|
@darrenaustin / @HansMuller Is it on purpose that plain just Seems a bit inconsistent that it does not default to the M3 styling as well when M3 is used. Is it on purpose or an oversight, or just not done yet? In any case, if left like this, I'm sure users will wonder about it and stumble over this inconsistency. |
|
It is more an oversight than anything else. The M3 spec doesn't describe a 'plain' chip, so i tis not obvious what "M3 styling" should apply to Flutter's generic |
|
Thanks @darrenaustin, looking at M3 spec I figured that might be the background too. Using same defaults as AssistChip sounds good. Even if not mentioned in M3 spec I think it would make sense in Flutter from a design consistency viewpoint. |

Part of: #91605
Updated the chip widgets
ActionChip,FilterChip,ChoiceChipandInputChipwith support for Material Design 3.In order to use the chip widgets with the new Material 3 defaults, turn on the
useMaterial3flag in theThemeData:The names of some of the chips in Material Design 3 are a little different from the previous version. You can use the following to implement M3 designs:
ActionChipFilterChiporChoiceChip(for single selection)InputChipActionChipFixes: #99024
Pre-launch Checklist
///).