File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -48,8 +48,10 @@ class _FormBuilderState extends State<FormBuilder> {
48
48
//TODO: Allow user to update field value or validate based on changes in others (e.g. Summations, Confirm Password)
49
49
onWillPop: widget.onWillPop,
50
50
autovalidate: widget.autovalidate,
51
- child: ListView (
52
- children: formControlsToForm (),
51
+ child: SingleChildScrollView (
52
+ child: Column (
53
+ children: formControlsToForm (),
54
+ ),
53
55
),
54
56
);
55
57
}
@@ -89,14 +91,13 @@ class _FormBuilderState extends State<FormBuilder> {
89
91
keyboardType = TextInputType .text;
90
92
break ;
91
93
}
92
-
93
94
formControlsList.add (TextFormField (
94
95
decoration: InputDecoration (
95
96
labelText: formControl.label,
96
97
hintText: formControl.hint,
97
98
helperText: formControl.hint,
98
99
),
99
- initialValue: "${formControl .value }" ?? null ,
100
+ initialValue: formControl.value != null ? "${formControl .value }" : '' ,
100
101
maxLines: formControl.type == FormBuilderInput .TYPE_MULTILINE_TEXT
101
102
? 5
102
103
: 1 ,
You can’t perform that action at this time.
0 commit comments