@@ -68,7 +68,7 @@ class FormBuilderDateTimePicker extends FormBuilderFieldDecoration<DateTime> {
68
68
/// `null` if [format] fails to parse the text.
69
69
final ValueChanged <DateTime ?>? onFieldSubmitted;
70
70
final TextEditingController ? controller;
71
- final TextInputType keyboardType;
71
+ final TextInputType ? keyboardType;
72
72
final TextStyle ? style;
73
73
final TextAlign textAlign;
74
74
final TextAlignVertical ? textAlignVertical;
@@ -147,7 +147,7 @@ class FormBuilderDateTimePicker extends FormBuilderFieldDecoration<DateTime> {
147
147
this .enableInteractiveSelection = true ,
148
148
this .resetIcon = const Icon (Icons .close),
149
149
this .initialTime = const TimeOfDay (hour: 12 , minute: 0 ),
150
- this .keyboardType = TextInputType .text ,
150
+ this .keyboardType,
151
151
this .textAlign = TextAlign .start,
152
152
this .autofocus = false ,
153
153
this .obscureText = false ,
@@ -343,6 +343,7 @@ class _FormBuilderDateTimePickerState extends FormBuilderFieldDecorationState<
343
343
routeSettings: widget.routeSettings,
344
344
currentDate: widget.currentDate,
345
345
anchorPoint: widget.anchorPoint,
346
+ keyboardType: widget.keyboardType,
346
347
);
347
348
}
348
349
0 commit comments