File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -211,7 +211,7 @@ class _FormBuilderColorPickerFieldState
211
211
212
212
Future <void > _handleFocus () async {
213
213
if (effectiveFocusNode.hasFocus && enabled) {
214
- effectiveFocusNode? .unfocus ();
214
+ effectiveFocusNode.unfocus ();
215
215
final selected = await showDialog <bool >(
216
216
context: context,
217
217
builder: (BuildContext context) {
Original file line number Diff line number Diff line change @@ -6,7 +6,6 @@ import 'package:flutter/material.dart';
6
6
import 'package:flutter/services.dart' ;
7
7
import 'package:flutter/widgets.dart' ;
8
8
import 'package:flutter_form_builder/flutter_form_builder.dart' ;
9
- import 'package:flutter_form_builder/src/always_disabled_focus_node.dart' ;
10
9
import 'package:intl/intl.dart' as intl;
11
10
12
11
class FormBuilderDateRangePicker extends FormBuilderField <List <DateTime >> {
@@ -205,8 +204,8 @@ class FormBuilderDateRangePickerState
205
204
}
206
205
207
206
Future <void > _handleFocus () async {
208
- effectiveFocusNode? .unfocus ();
209
207
if (effectiveFocusNode.hasFocus && enabled) {
208
+ effectiveFocusNode.unfocus ();
210
209
final initialFirstDate = value? .isEmpty ?? true
211
210
? (widget.initialFirstDate ?? DateTime .now ())
212
211
: value[0 ];
You can’t perform that action at this time.
0 commit comments