Skip to content

Commit

Permalink
Merge branch 'main' into date-picker-cancel-behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
deandreamatias authored Dec 18, 2024
2 parents bd0cc9a + 3c217bb commit 05b9945
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/src/fields/form_builder_date_time_picker.dart
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ class FormBuilderDateTimePicker extends FormBuilderFieldDecoration<DateTime> {
final SelectableDayPredicate? selectableDayPredicate;
final Offset? anchorPoint;
final EntryModeChangeCallback? onEntryModeChanged;
final bool barrierDismissible;

/// Creates field for `Date`, `Time` and `DateTime` input
FormBuilderDateTimePicker({
Expand Down Expand Up @@ -195,6 +196,7 @@ class FormBuilderDateTimePicker extends FormBuilderFieldDecoration<DateTime> {
this.selectableDayPredicate,
this.anchorPoint,
this.onEntryModeChanged,
this.barrierDismissible = true,
}) : super(
builder: (FormFieldState<DateTime?> field) {
final state = field as _FormBuilderDateTimePickerState;
Expand Down Expand Up @@ -343,6 +345,7 @@ class _FormBuilderDateTimePickerState extends FormBuilderFieldDecorationState<
currentDate: widget.currentDate,
anchorPoint: widget.anchorPoint,
keyboardType: widget.keyboardType,
barrierDismissible: widget.barrierDismissible,
);
}

Expand Down Expand Up @@ -376,6 +379,7 @@ class _FormBuilderDateTimePickerState extends FormBuilderFieldDecorationState<
anchorPoint: widget.anchorPoint,
errorInvalidText: widget.errorInvalidText,
onEntryModeChanged: widget.onEntryModeChanged,
barrierDismissible: widget.barrierDismissible,
);
}

Expand Down

0 comments on commit 05b9945

Please sign in to comment.