Skip to content

Commit d7d5f07

Browse files
authored
Fix issue #672 (#675)
-Set cupertino date-picker's default date
1 parent 4ced8f1 commit d7d5f07

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/src/fields/form_builder_date_time_picker.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -378,8 +378,8 @@ class _FormBuilderDateTimePickerState
378378
return DatePicker.showDatePicker(
379379
context,
380380
showTitleActions: true,
381-
minTime: widget.firstDate,
382-
maxTime: widget.lastDate,
381+
minTime: widget.firstDate ?? DateTime(1900),
382+
maxTime: widget.lastDate ?? DateTime(2100),
383383
currentTime: currentValue,
384384
locale: _localeType(),
385385
theme: widget.theme,

0 commit comments

Comments
 (0)