From 14f5475298138f8490e22087fd5fe8bb317f2caf Mon Sep 17 00:00:00 2001 From: Martin Kamleithner Date: Wed, 17 Jul 2019 11:17:32 +0200 Subject: [PATCH] update datetime_picker_formfield to 0.4.0 --- .../fields/form_builder_date_time_picker.dart | 32 +++++++++---------- pubspec.lock | 2 +- pubspec.yaml | 2 +- 3 files changed, 17 insertions(+), 19 deletions(-) diff --git a/lib/src/fields/form_builder_date_time_picker.dart b/lib/src/fields/form_builder_date_time_picker.dart index 01bc71975d..22934468a3 100644 --- a/lib/src/fields/form_builder_date_time_picker.dart +++ b/lib/src/fields/form_builder_date_time_picker.dart @@ -209,23 +209,21 @@ class _FormBuilderDateTimePickerState extends State { onChanged: widget.onChanged, autovalidate: widget.autovalidate, resetIcon: Icon(widget.resetIcon), - child: TextField( - textDirection: widget.textDirection, - textAlign: widget.textAlign, - maxLength: widget.maxLength, - autofocus: widget.autofocus, - decoration: widget.decoration, - enabled: widget.editable, - autocorrect: widget.autocorrect, - readOnly: widget.editable, - controller: widget.controller, - focusNode: widget.focusNode, - inputFormatters: widget.inputFormatters, - keyboardType: widget.keyboardType, - maxLengthEnforced: widget.maxLengthEnforced, - maxLines: widget.maxLines, - obscureText: widget.obscureText, - ), + textDirection: widget.textDirection, + textAlign: widget.textAlign, + maxLength: widget.maxLength, + autofocus: widget.autofocus, + decoration: widget.decoration, + enabled: widget.editable, + autocorrect: widget.autocorrect, + readOnly: _readonly, + controller: widget.controller, + focusNode: widget.focusNode, + inputFormatters: widget.inputFormatters, + keyboardType: widget.keyboardType, + maxLengthEnforced: widget.maxLengthEnforced, + maxLines: widget.maxLines, + obscureText: widget.obscureText, onShowPicker: (ctx, time) async { switch (widget.inputType) { case InputType.date: diff --git a/pubspec.lock b/pubspec.lock index 0e37560876..ad443766f1 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -70,7 +70,7 @@ packages: name: datetime_picker_formfield url: "https://pub.dartlang.org" source: hosted - version: "0.3.2" + version: "0.4.0" flutter: dependency: "direct main" description: flutter diff --git a/pubspec.yaml b/pubspec.yaml index 9a1048a734..7eaa21dd26 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -15,7 +15,7 @@ dependencies: intl: ^0.15.8 sy_flutter_widgets: ^0.1.4 flutter_chips_input: ^1.3.0 - datetime_picker_formfield: ^0.3.2 + datetime_picker_formfield: ^0.4.0 # signature: ^2.0.0 - Doesn't implement onChanged, submitted PR. Meanwhile using local clone with onChanged validators: ^2.0.0+1