Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Datepicker upgrade 0.4.0 #94

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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