File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -108,7 +108,7 @@ class FormBuilderTextField extends StatefulWidget {
108
108
109
109
class FormBuilderTextFieldState extends State <FormBuilderTextField > {
110
110
bool _readOnly = false ;
111
- TextEditingController _effectiveController = TextEditingController () ;
111
+ TextEditingController _effectiveController;
112
112
FormBuilderState _formState;
113
113
final GlobalKey <FormFieldState > _fieldKey = GlobalKey <FormFieldState >();
114
114
String _initialValue;
@@ -124,7 +124,7 @@ class FormBuilderTextFieldState extends State<FormBuilderTextField> {
124
124
if (widget.controller != null ) {
125
125
_effectiveController = widget.controller;
126
126
} else {
127
- _effectiveController.text = _initialValue ?? '' ;
127
+ _effectiveController = TextEditingController (text : _initialValue ?? '' ) ;
128
128
}
129
129
super .initState ();
130
130
}
You can’t perform that action at this time.
0 commit comments