File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
packages/flutter_form_builder/lib/src/fields Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ class FormBuilderDateTimePicker extends FormBuilderField<DateTime> {
45
45
/// If defined, the TextField [decoration] 's [suffixIcon] will be
46
46
/// overridden to reset the input using the icon defined here.
47
47
/// Set this to `null` to stop that behavior. Defaults to [Icons.close] .
48
- final Icon resetIcon;
48
+ final Widget ? resetIcon;
49
49
50
50
/// Called when an enclosing form is saved. The value passed will be `null`
51
51
/// if [format] fails to parse the text.
@@ -218,7 +218,7 @@ class FormBuilderDateTimePicker extends FormBuilderField<DateTime> {
218
218
textAlign: textAlign,
219
219
maxLength: maxLength,
220
220
autofocus: autofocus,
221
- decoration: state.decoration,
221
+ decoration: state.decoration. copyWith (suffixIcon : resetIcon) ,
222
222
readOnly: true ,
223
223
enabled: state.enabled,
224
224
autocorrect: autocorrect,
You can’t perform that action at this time.
0 commit comments