Skip to content

Commit 8c9c1f9

Browse files
committed
Fixed bug where readonly not applied to Date, Time and DateTime Pickers
1 parent c86dac6 commit 8c9c1f9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/src/form_builder.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ class FormBuilderState extends State<FormBuilder> {
201201
format: formControl.format != null
202202
? DateFormat(formControl.format)
203203
: _dateTimeFormats[InputType.both],
204-
editable: !(formControl.readonly || widget.readonly),
204+
enabled: !(formControl.readonly || widget.readonly),
205205
firstDate: formControl.firstDate,
206206
lastDate: formControl.lastDate,
207207
decoration: InputDecoration(
@@ -227,7 +227,7 @@ class FormBuilderState extends State<FormBuilder> {
227227
format: formControl.format != null
228228
? DateFormat(formControl.format)
229229
: _dateTimeFormats[InputType.date],
230-
editable: !(formControl.readonly || widget.readonly),
230+
enabled: !(formControl.readonly || widget.readonly),
231231
firstDate: formControl.firstDate,
232232
lastDate: formControl.lastDate,
233233
decoration: InputDecoration(
@@ -253,7 +253,7 @@ class FormBuilderState extends State<FormBuilder> {
253253
format: formControl.format != null
254254
? DateFormat(formControl.format)
255255
: _dateTimeFormats[InputType.time],
256-
editable: !(formControl.readonly || widget.readonly),
256+
enabled: !(formControl.readonly || widget.readonly),
257257
decoration: InputDecoration(
258258
labelText: formControl.label,
259259
helperText: formControl.hint,

0 commit comments

Comments
 (0)