@@ -141,6 +141,16 @@ class FormBuilderDateTimePicker extends FormBuilderField {
141
141
final TextCapitalization textCapitalization;
142
142
final bool alwaysUse24HourFormat;
143
143
144
+ final String cancelText;
145
+ final String confirmText;
146
+ final String errorFormatText;
147
+ final String errorInvalidText;
148
+ final String fieldHintText;
149
+ final String fieldLabelText;
150
+ final String helpText;
151
+ final DatePickerEntryMode initialEntryMode;
152
+ final RouteSettings routeSettings;
153
+
144
154
FormBuilderDateTimePicker ({
145
155
Key key,
146
156
@required this .attribute,
@@ -197,6 +207,15 @@ class FormBuilderDateTimePicker extends FormBuilderField {
197
207
this .strutStyle,
198
208
this .useRootNavigator = true ,
199
209
this .alwaysUse24HourFormat = false ,
210
+ this .cancelText,
211
+ this .confirmText,
212
+ this .errorFormatText,
213
+ this .errorInvalidText,
214
+ this .fieldHintText,
215
+ this .fieldLabelText,
216
+ this .helpText,
217
+ this .initialEntryMode,
218
+ this .routeSettings,
200
219
}) : super (
201
220
key: key,
202
221
initialValue: initialValue,
@@ -368,6 +387,15 @@ class _FormBuilderDateTimePickerState extends FormBuilderFieldState {
368
387
child: child,
369
388
);
370
389
},
390
+ cancelText: widget.cancelText,
391
+ confirmText: widget.confirmText,
392
+ errorFormatText: widget.errorFormatText,
393
+ errorInvalidText: widget.errorInvalidText,
394
+ fieldHintText: widget.fieldHintText,
395
+ fieldLabelText: widget.fieldLabelText,
396
+ helpText: widget.helpText,
397
+ initialEntryMode: widget.initialEntryMode,
398
+ routeSettings: widget.routeSettings,
371
399
);
372
400
}
373
401
}
@@ -391,6 +419,7 @@ class _FormBuilderDateTimePickerState extends FormBuilderFieldState {
391
419
);
392
420
},
393
421
useRootNavigator: widget.useRootNavigator,
422
+ routeSettings: widget.routeSettings,
394
423
).then (
395
424
(result) {
396
425
return result ??
0 commit comments