From 1cfcfa6d36876fa15fc2cdff902f2d05f2771857 Mon Sep 17 00:00:00 2001 From: Danvick Miller Date: Sun, 1 Dec 2019 14:55:19 +0300 Subject: [PATCH] Fixed bug where readOnly not working in FormBuilderDateTimePicker. Closes #179 --- lib/src/fields/form_builder_date_time_picker.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/src/fields/form_builder_date_time_picker.dart b/lib/src/fields/form_builder_date_time_picker.dart index eba8f0afa3..55949c4a1c 100644 --- a/lib/src/fields/form_builder_date_time_picker.dart +++ b/lib/src/fields/form_builder_date_time_picker.dart @@ -290,9 +290,9 @@ class _FormBuilderDateTimePickerState extends State { maxLength: widget.maxLength, autofocus: widget.autofocus, decoration: widget.decoration, - enabled: widget.enabled, - autocorrect: widget.autocorrect, readOnly: _readOnly, + enabled: _readOnly ? false : widget.enabled, + autocorrect: widget.autocorrect, controller: _textFieldController, focusNode: _focusNode, inputFormatters: widget.inputFormatters,