CardSettingsColorPicker constructor
CardSettingsColorPicker({
- Key? key,
- FormFieldSetter<
Color> ? onSaved, - FormFieldValidator<
Color> ? validator, - Color initialValue = Colors.green,
- AutovalidateMode autovalidateMode = AutovalidateMode.onUserInteraction,
- bool enabled = true,
- ValueChanged<
Color> ? onChanged, - bool visible = true,
- TextAlign? contentAlign,
- Icon? icon,
- TextAlign? labelAlign,
- double? labelWidth,
- CardSettingsColorPickerType pickerType = CardSettingsColorPickerType.colors,
- Widget? requiredIndicator,
- String label = "Label",
- bool? showMaterialonIOS,
- EdgeInsetsGeometry? fieldPadding,
Implementation
CardSettingsColorPicker({
Key? key,
// bool autovalidate: false,
FormFieldSetter<Color>? onSaved,
FormFieldValidator<Color>? validator,
Color initialValue = Colors.green,
AutovalidateMode autovalidateMode = AutovalidateMode.onUserInteraction,
this.enabled = true,
this.onChanged,
this.visible = true,
this.contentAlign,
this.icon,
this.labelAlign,
this.labelWidth,
this.pickerType = CardSettingsColorPickerType.colors,
this.requiredIndicator,
this.label = "Label",
this.showMaterialonIOS,
this.fieldPadding,
}) : super(
key: key,
initialValue: initialValue,
onSaved: onSaved,
validator: validator,
autovalidateMode: autovalidateMode,
builder: (FormFieldState<Color> field) =>
(field as _CardSettingsColorPickerState)._build(field.context));