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<
364
364
};
365
365
}
366
366
367
- final timePickerResult = await showTimePicker (
367
+ return await showTimePicker (
368
368
context: context,
369
369
initialTime: currentValue != null
370
370
? TimeOfDay .fromDateTime (currentValue)
@@ -380,8 +380,6 @@ class _FormBuilderDateTimePickerState extends FormBuilderFieldDecorationState<
380
380
errorInvalidText: widget.errorInvalidText,
381
381
onEntryModeChanged: widget.onEntryModeChanged,
382
382
);
383
- return timePickerResult ??
384
- (currentValue != null ? TimeOfDay .fromDateTime (currentValue) : null );
385
383
}
386
384
387
385
/// Sets the hour and minute of a [DateTime] from a [TimeOfDay] .
You can’t perform that action at this time.
0 commit comments