File tree Expand file tree Collapse file tree 1 file changed +1
-3
lines changed
Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -364,7 +364,7 @@ class _FormBuilderDateTimePickerState extends FormBuilderFieldDecorationState<
364364 };
365365 }
366366
367- final timePickerResult = await showTimePicker (
367+ return await showTimePicker (
368368 context: context,
369369 initialTime: currentValue != null
370370 ? TimeOfDay .fromDateTime (currentValue)
@@ -380,8 +380,6 @@ class _FormBuilderDateTimePickerState extends FormBuilderFieldDecorationState<
380380 errorInvalidText: widget.errorInvalidText,
381381 onEntryModeChanged: widget.onEntryModeChanged,
382382 );
383- return timePickerResult ??
384- (currentValue != null ? TimeOfDay .fromDateTime (currentValue) : null );
385383 }
386384
387385 /// Sets the hour and minute of a [DateTime] from a [TimeOfDay] .
You can’t perform that action at this time.
0 commit comments