AdvancedDatePickerPlusDatePicker constructor
const
AdvancedDatePickerPlusDatePicker({
- 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,
- bool? isRangePicker = false,
- ValueChanged<
DateTimeRange< ? onRangeSelected,DateTime> > - VoidCallback? onLeadingDateTap,
- ValueChanged<
DateTime> ? onStartDateChanged, - ValueChanged<
DateTime> ? onEndDateChanged, - DateTimeRange<
DateTime> ? selectedRange, - TextStyle? selectedCellsTextStyle,
- BoxDecoration? selectedCellsDecoration,
- TextStyle? singleSelectedCellTextStyle,
- BoxDecoration? singleSelectedCellDecoration,
Implementation
const AdvancedDatePickerPlusDatePicker({
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,
this.isRangePicker = false,
this.onRangeSelected,
this.onLeadingDateTap,
this.onStartDateChanged,
this.onEndDateChanged,
this.selectedRange,
this.selectedCellsTextStyle,
this.selectedCellsDecoration,
this.singleSelectedCellTextStyle,
this.singleSelectedCellDecoration,
});