File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -40,9 +40,8 @@ class FormBuilderDateTimePicker extends FormBuilderField<DateTime> {
40
40
/// to noon. Explicitly set this to `null` to use the current time.
41
41
final TimeOfDay initialTime;
42
42
43
- /// If defined, the TextField [decoration] 's [suffixIcon] will be
44
- /// overridden to reset the input using the icon defined here.
45
- /// Set this to `null` to stop that behavior. Defaults to [Icons.close] .
43
+ @Deprecated (
44
+ 'This property is no used anymore. Please use decoration.suffixIcon to set your desired icon' )
46
45
final Widget ? resetIcon;
47
46
48
47
/// Called when an enclosing form is saved. The value passed will be `null`
@@ -213,7 +212,7 @@ class FormBuilderDateTimePicker extends FormBuilderField<DateTime> {
213
212
textAlign: textAlign,
214
213
maxLength: maxLength,
215
214
autofocus: autofocus,
216
- decoration: state.decoration. copyWith (suffixIcon : resetIcon) ,
215
+ decoration: state.decoration,
217
216
readOnly: true ,
218
217
enabled: state.enabled,
219
218
autocorrect: autocorrect,
You can’t perform that action at this time.
0 commit comments