[flutter roll] Revert "Fix Chip.shape's side is not used when provided in Material 3" (#133615)
Reverts flutter/flutter#132941 context: b/298110031 The rounded rectangle borders don't appear in some of the internal golden image tests.
This commit is contained in:
@@ -19,6 +19,7 @@ class _${blockName}DefaultsM3 extends ChipThemeData {
|
||||
_${blockName}DefaultsM3(this.context, this.isEnabled)
|
||||
: super(
|
||||
elevation: ${elevation("$tokenGroup$variant.container")},
|
||||
shape: ${shape("$tokenGroup.container")},
|
||||
showCheckmark: true,
|
||||
);
|
||||
|
||||
@@ -46,13 +47,9 @@ class _${blockName}DefaultsM3 extends ChipThemeData {
|
||||
Color? get deleteIconColor => ${color("$tokenGroup.with-icon.selected.icon.color")};
|
||||
|
||||
@override
|
||||
OutlinedBorder? get shape {
|
||||
return ${shape("$tokenGroup.container")}.copyWith(
|
||||
side: isEnabled
|
||||
? ${border('$tokenGroup$variant.outline')}
|
||||
: ${border('$tokenGroup$variant.disabled.outline')},
|
||||
);
|
||||
}
|
||||
BorderSide? get side => isEnabled
|
||||
? ${border('$tokenGroup$variant.outline')}
|
||||
: ${border('$tokenGroup$variant.disabled.outline')};
|
||||
|
||||
@override
|
||||
IconThemeData? get iconTheme => IconThemeData(
|
||||
|
||||
Reference in New Issue
Block a user