colorScheme.secondary

This commit is contained in:
reidha 2022-01-02 18:08:47 +08:00
parent 42d078011e
commit c557e72320
7 changed files with 19 additions and 62 deletions

View file

@ -25,8 +25,7 @@ class CheckboxIconFormField extends FormField<bool> {
builder: (FormFieldState<bool> state) {
trueIconColor ??= (context == null
? null
: Theme.of(context).accentIconTheme.color);
// Plan to change to colorScheme.secondary
: Theme.of(context).colorScheme.secondary);
return Padding(
padding: EdgeInsets.all(padding),

View file

@ -17,6 +17,8 @@ class CheckboxListTileFormField extends FormField<bool> {
Color? activeColor,
Color? checkColor,
ListTileControlAffinity controlAffinity = ListTileControlAffinity.leading,
EdgeInsetsGeometry? contentPadding,
bool autofocus = false,
Widget? secondary,
}) : super(
key: key,
@ -48,6 +50,8 @@ class CheckboxListTileFormField extends FormField<bool> {
: null,
controlAffinity: controlAffinity,
secondary: secondary,
contentPadding: contentPadding,
autofocus: autofocus,
);
},
);