PickerPlusDatePicker constructor
PickerPlusDatePicker({
- Key? key,
- required DateTime maxDate,
- required DateTime minDate,
- ValueChanged<
DateTime> ? onDateSelected, - ValueChanged<
DateTime> ? onDoubleTap, - DateTime? initialDate,
- DateTime? selectedDate,
- DateTime? currentDate,
- 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? selectedCellTextStyle,
- BoxDecoration? selectedCellDecoration,
- TextStyle? leadingDateTextStyle,
- Color? slidersColor,
- double? slidersSize,
- Color? highlightColor,
- Color? splashColor,
- double? splashRadius,
- bool centerLeadingDate = false,
- String? previousPageSemanticLabel,
- String? nextPageSemanticLabel,
- DatePredicate? disabledDayPredicate,
- VoidCallback? onOk,
- VoidCallback? onCancel,
- bool showOkCancel = true,
- EdgeInsets? buttonPadding,
- TextStyle? cancelButtonStyle,
- TextStyle? okButtonStyle,
Implementation
PickerPlusDatePicker({
super.key,
required this.maxDate,
required this.minDate,
this.onDateSelected,
this.onDoubleTap,
this.initialDate,
this.selectedDate,
this.currentDate,
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.selectedCellTextStyle,
this.selectedCellDecoration,
this.leadingDateTextStyle,
this.slidersColor,
this.slidersSize,
this.highlightColor,
this.splashColor,
this.splashRadius,
this.centerLeadingDate = false,
this.previousPageSemanticLabel,
this.nextPageSemanticLabel,
this.disabledDayPredicate,
this.onOk,
this.onCancel,
this.showOkCancel = true,
this.buttonPadding,
this.cancelButtonStyle,
this.okButtonStyle,
}) {
assert(!minDate.isAfter(maxDate), "minDate can't be after maxDate");
}