Skip to content

Commit 94bc3c0

Browse files
committed
Merge branch 'version_4' of https://github.com/danvick/flutter_form_builder into version_4
2 parents da5b05e + 48b79bf commit 94bc3c0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/src/fields/form_builder_color_picker.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ class _FormBuilderColorPickerFieldState
212212

213213
Future<void> _handleFocus() async {
214214
if (effectiveFocusNode.hasFocus && enabled) {
215-
effectiveFocusNode?.unfocus();
215+
effectiveFocusNode.unfocus();
216216
final selected = await showDialog<bool>(
217217
context: context,
218218
builder: (BuildContext context) {

lib/src/fields/form_builder_date_range_picker.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,8 +206,8 @@ class FormBuilderDateRangePickerState
206206
}
207207

208208
Future<void> _handleFocus() async {
209-
effectiveFocusNode?.unfocus();
210209
if (effectiveFocusNode.hasFocus && enabled) {
210+
effectiveFocusNode.unfocus();
211211
final initialFirstDate = value?.isEmpty ?? true
212212
? (widget.initialFirstDate ?? DateTime.now())
213213
: value[0];

0 commit comments

Comments
 (0)