Skip to content

Commit 14f5475

Browse files
Martin Kamleithnerdanvick
authored andcommitted
update datetime_picker_formfield to 0.4.0
1 parent c7373fa commit 14f5475

File tree

3 files changed

+17
-19
lines changed

3 files changed

+17
-19
lines changed

lib/src/fields/form_builder_date_time_picker.dart

Lines changed: 15 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -209,23 +209,21 @@ class _FormBuilderDateTimePickerState extends State<FormBuilderDateTimePicker> {
209209
onChanged: widget.onChanged,
210210
autovalidate: widget.autovalidate,
211211
resetIcon: Icon(widget.resetIcon),
212-
child: TextField(
213-
textDirection: widget.textDirection,
214-
textAlign: widget.textAlign,
215-
maxLength: widget.maxLength,
216-
autofocus: widget.autofocus,
217-
decoration: widget.decoration,
218-
enabled: widget.editable,
219-
autocorrect: widget.autocorrect,
220-
readOnly: widget.editable,
221-
controller: widget.controller,
222-
focusNode: widget.focusNode,
223-
inputFormatters: widget.inputFormatters,
224-
keyboardType: widget.keyboardType,
225-
maxLengthEnforced: widget.maxLengthEnforced,
226-
maxLines: widget.maxLines,
227-
obscureText: widget.obscureText,
228-
),
212+
textDirection: widget.textDirection,
213+
textAlign: widget.textAlign,
214+
maxLength: widget.maxLength,
215+
autofocus: widget.autofocus,
216+
decoration: widget.decoration,
217+
enabled: widget.editable,
218+
autocorrect: widget.autocorrect,
219+
readOnly: _readonly,
220+
controller: widget.controller,
221+
focusNode: widget.focusNode,
222+
inputFormatters: widget.inputFormatters,
223+
keyboardType: widget.keyboardType,
224+
maxLengthEnforced: widget.maxLengthEnforced,
225+
maxLines: widget.maxLines,
226+
obscureText: widget.obscureText,
229227
onShowPicker: (ctx, time) async {
230228
switch (widget.inputType) {
231229
case InputType.date:

pubspec.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ packages:
7070
name: datetime_picker_formfield
7171
url: "https://pub.dartlang.org"
7272
source: hosted
73-
version: "0.3.2"
73+
version: "0.4.0"
7474
flutter:
7575
dependency: "direct main"
7676
description: flutter

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ dependencies:
1515
intl: ^0.15.8
1616
sy_flutter_widgets: ^0.1.4
1717
flutter_chips_input: ^1.3.0
18-
datetime_picker_formfield: ^0.3.2
18+
datetime_picker_formfield: ^0.4.0
1919
# signature: ^2.0.0 - Doesn't implement onChanged, submitted PR. Meanwhile using local clone with onChanged
2020
validators: ^2.0.0+1
2121

0 commit comments

Comments
 (0)