From e7b3f94d014af1d79a9d67e5d07aaa1c4edb7545 Mon Sep 17 00:00:00 2001 From: geronimol <56521222+geronimol@users.noreply.github.com> Date: Wed, 18 Dec 2024 13:07:55 -0300 Subject: [PATCH] fix: change DateTime Picker behavior when InputType==both --- lib/src/fields/form_builder_date_time_picker.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/fields/form_builder_date_time_picker.dart b/lib/src/fields/form_builder_date_time_picker.dart index 7517c22e5..46c3ba422 100644 --- a/lib/src/fields/form_builder_date_time_picker.dart +++ b/lib/src/fields/form_builder_date_time_picker.dart @@ -307,7 +307,7 @@ class _FormBuilderDateTimePickerState extends FormBuilderFieldDecorationState< if (date != null) { if (!mounted) break; final time = await _showTimePicker(currentValue); - if(time == null) { + if (time == null) { newValue = null; } else { newValue = combine(date, time);