Skip to content

Commit

Permalink
update datetime_picker_formfield to 0.4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Kamleithner authored and danvick committed Jul 17, 2019
1 parent c7373fa commit 14f5475
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 19 deletions.
32 changes: 15 additions & 17 deletions lib/src/fields/form_builder_date_time_picker.dart
Original file line number Diff line number Diff line change
Expand Up @@ -209,23 +209,21 @@ class _FormBuilderDateTimePickerState extends State<FormBuilderDateTimePicker> {
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:
Expand Down
2 changes: 1 addition & 1 deletion pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 14f5475

Please sign in to comment.