TextField should support disabled input text style (#119216)
Co-authored-by: Renzo Olivares <roliv@google.com>
This commit is contained in:
@@ -9,6 +9,13 @@ class TextFieldTemplate extends TokenTemplate {
|
||||
|
||||
@override
|
||||
String generate() => '''
|
||||
TextStyle? _m3StateInputStyle(BuildContext context) => MaterialStateTextStyle.resolveWith((Set<MaterialState> states) {
|
||||
if (states.contains(MaterialState.disabled)) {
|
||||
return TextStyle(color: ${textStyle("md.comp.filled-text-field.label-text")}!.color?.withOpacity(0.38));
|
||||
}
|
||||
return TextStyle(color: ${textStyle("md.comp.filled-text-field.label-text")}!.color);
|
||||
});
|
||||
|
||||
TextStyle _m3InputStyle(BuildContext context) => ${textStyle("md.comp.filled-text-field.label-text")}!;
|
||||
|
||||
TextStyle _m3CounterErrorStyle(BuildContext context) =>
|
||||
|
||||
Reference in New Issue
Block a user