PickerPlusRangeDatePicker constructor
PickerPlusRangeDatePicker({
- Key? key,
- required DateTime maxDate,
- required DateTime minDate,
- ValueChanged<
DateTimeRange< ? onRangeSelected,DateTime> > - VoidCallback? onLeadingDateTap,
- ValueChanged<
DateTime> ? onStartDateChanged, - ValueChanged<
DateTime> ? onEndDateChanged, - DateTime? currentDate,
- DateTime? initialDate,
- DateTimeRange<
DateTime> ? selectedRange, - EdgeInsets padding = const EdgeInsets.all(16),
- PickerType initialPickerType = PickerType.days,
- TextStyle? daysOfTheWeekTextStyle,
- TextStyle? enabledCellsTextStyle,
- BoxDecoration enabledCellsDecoration = const BoxDecoration(),
- TextStyle? disabledCellsTextStyle,
- BoxDecoration disabledCellsDecoration = const BoxDecoration(),
- TextStyle? currentDateTextStyle,
- BoxDecoration? currentDateDecoration,
- TextStyle? selectedCellsTextStyle,
- BoxDecoration? selectedCellsDecoration,
- TextStyle? singleSelectedCellTextStyle,
- BoxDecoration? singleSelectedCellDecoration,
- TextStyle? leadingDateTextStyle,
- Color? slidersColor,
- double? slidersSize,
- Color? highlightColor,
- Color? splashColor,
- double? splashRadius,
- bool centerLeadingDate = false,
- String? previousPageSemanticLabel,
- String? nextPageSemanticLabel,
- VoidCallback? onOk,
- VoidCallback? onCancel,
- EdgeInsets? buttonPadding,
- TextStyle? cancelButtonStyle,
- TextStyle? okButtonStyle,
Implementation
PickerPlusRangeDatePicker({
super.key,
required this.maxDate,
required this.minDate,
this.onRangeSelected,
this.onLeadingDateTap,
this.onStartDateChanged,
this.onEndDateChanged,
this.currentDate,
this.initialDate,
this.selectedRange,
this.padding = const EdgeInsets.all(16),
this.initialPickerType = PickerType.days,
this.daysOfTheWeekTextStyle,
this.enabledCellsTextStyle,
this.enabledCellsDecoration = const BoxDecoration(),
this.disabledCellsTextStyle,
this.disabledCellsDecoration = const BoxDecoration(),
this.currentDateTextStyle,
this.currentDateDecoration,
this.selectedCellsTextStyle,
this.selectedCellsDecoration,
this.singleSelectedCellTextStyle,
this.singleSelectedCellDecoration,
this.leadingDateTextStyle,
this.slidersColor,
this.slidersSize,
this.highlightColor,
this.splashColor,
this.splashRadius,
this.centerLeadingDate = false,
this.previousPageSemanticLabel,
this.nextPageSemanticLabel,
this.onOk,
this.onCancel,
this.buttonPadding,
this.cancelButtonStyle,
this.okButtonStyle,
}) {
assert(!minDate.isAfter(maxDate), "minDate can't be after maxDate");
}