@@ -126,6 +126,8 @@ class FormBuilderDateTimePicker extends FormBuilderField<DateTime> {
126
126
final TimePickerEntryMode timePickerInitialEntryMode;
127
127
final StrutStyle ? strutStyle;
128
128
final SelectableDayPredicate ? selectableDayPredicate;
129
+ final Offset ? anchorPoint;
130
+ final EntryModeChangeCallback ? onEntryModeChanged;
129
131
130
132
/// Creates field for `Date` , `Time` and `DateTime` input
131
133
FormBuilderDateTimePicker ({
@@ -193,6 +195,8 @@ class FormBuilderDateTimePicker extends FormBuilderField<DateTime> {
193
195
this .routeSettings,
194
196
this .strutStyle,
195
197
this .selectableDayPredicate,
198
+ this .anchorPoint,
199
+ this .onEntryModeChanged,
196
200
}) : super (
197
201
key: key,
198
202
initialValue: initialValue,
@@ -347,6 +351,7 @@ class _FormBuilderDateTimePickerState
347
351
initialEntryMode: widget.initialEntryMode,
348
352
routeSettings: widget.routeSettings,
349
353
currentDate: widget.currentDate,
354
+ anchorPoint: widget.anchorPoint,
350
355
);
351
356
}
352
357
@@ -364,6 +369,9 @@ class _FormBuilderDateTimePickerState
364
369
helpText: widget.helpText,
365
370
confirmText: widget.confirmText,
366
371
cancelText: widget.cancelText,
372
+ anchorPoint: widget.anchorPoint,
373
+ errorInvalidText: widget.errorInvalidText,
374
+ onEntryModeChanged: widget.onEntryModeChanged,
367
375
);
368
376
return timePickerResult ??
369
377
(currentValue != null ? TimeOfDay .fromDateTime (currentValue) : null );
0 commit comments