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 36e9c36 commit 04d5896Copy full SHA for 04d5896
1 file changed
lib/src/fields/form_builder_date_time_picker.dart
@@ -364,7 +364,7 @@ class _FormBuilderDateTimePickerState extends FormBuilderFieldDecorationState<
364
};
365
}
366
367
- final timePickerResult = await showTimePicker(
+ return await showTimePicker(
368
context: context,
369
initialTime: currentValue != null
370
? TimeOfDay.fromDateTime(currentValue)
@@ -380,8 +380,6 @@ class _FormBuilderDateTimePickerState extends FormBuilderFieldDecorationState<
380
errorInvalidText: widget.errorInvalidText,
381
onEntryModeChanged: widget.onEntryModeChanged,
382
);
383
- return timePickerResult ??
384
- (currentValue != null ? TimeOfDay.fromDateTime(currentValue) : null);
385
386
387
/// Sets the hour and minute of a [DateTime] from a [TimeOfDay].
0 commit comments