We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4ced8f1 commit d7d5f07Copy full SHA for d7d5f07
lib/src/fields/form_builder_date_time_picker.dart
@@ -378,8 +378,8 @@ class _FormBuilderDateTimePickerState
378
return DatePicker.showDatePicker(
379
context,
380
showTitleActions: true,
381
- minTime: widget.firstDate,
382
- maxTime: widget.lastDate,
+ minTime: widget.firstDate ?? DateTime(1900),
+ maxTime: widget.lastDate ?? DateTime(2100),
383
currentTime: currentValue,
384
locale: _localeType(),
385
theme: widget.theme,
0 commit comments