[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:
Xilai Zhang
2023-08-29 19:59:02 -07:00
committed by GitHub
parent b34955c2f4
commit 6fd42536b7
4 changed files with 8 additions and 127 deletions

View File

@@ -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(