[M3] Add customizable overflow property to Snackbar's action (#120394)

* add actionOverflowThreshold param

* analyzer tings

* https://www.youtube.com/watch?v=NPwyyjtxlzU

* remove erroneous switch changes

* rename test

* remove unwanted switch.dart diff

* remove redundant values

* review changes
This commit is contained in:
Eilidh Southren
2023-02-14 10:07:02 +00:00
committed by GitHub
parent b0edf58294
commit 17b4c70ff5
6 changed files with 155 additions and 31 deletions

View File

@@ -67,6 +67,12 @@ class _${blockName}DefaultsM3 extends SnackBarThemeData {
@override
bool get showCloseIcon => false;
@override
Color? get closeIconColor => ${componentColor("$tokenGroup.icon")};
@override
double get actionOverflowThreshold => 0.25;
}
''';
}