AdvancedDatePickerPlusDatePicker constructor

const AdvancedDatePickerPlusDatePicker({
  1. Key? key,
  2. required DateTime maxDate,
  3. required DateTime minDate,
  4. ValueChanged<DateTime>? onDateSelected,
  5. ValueChanged<DateTime>? onDoubleTap,
  6. DateTime? initialDate,
  7. DateTime? selectedDate,
  8. DateTime? currentDate,
  9. EdgeInsets padding = const EdgeInsets.all(16),
  10. PickerType initialPickerType = PickerType.days,
  11. TextStyle? daysOfTheWeekTextStyle,
  12. TextStyle? enabledCellsTextStyle,
  13. BoxDecoration enabledCellsDecoration = const BoxDecoration(),
  14. TextStyle? disabledCellsTextStyle,
  15. BoxDecoration disabledCellsDecoration = const BoxDecoration(),
  16. TextStyle? currentDateTextStyle,
  17. BoxDecoration? currentDateDecoration,
  18. TextStyle? selectedCellTextStyle,
  19. BoxDecoration? selectedCellDecoration,
  20. TextStyle? leadingDateTextStyle,
  21. Color? slidersColor,
  22. double? slidersSize,
  23. Color? highlightColor,
  24. Color? splashColor,
  25. double? splashRadius,
  26. bool centerLeadingDate = false,
  27. String? previousPageSemanticLabel,
  28. String? nextPageSemanticLabel,
  29. DatePredicate? disabledDayPredicate,
  30. VoidCallback? onOk,
  31. VoidCallback? onCancel,
  32. bool showOkCancel = true,
  33. EdgeInsets? buttonPadding,
  34. TextStyle? cancelButtonStyle,
  35. TextStyle? okButtonStyle,
  36. bool? isRangePicker = false,
  37. ValueChanged<DateTimeRange<DateTime>>? onRangeSelected,
  38. VoidCallback? onLeadingDateTap,
  39. ValueChanged<DateTime>? onStartDateChanged,
  40. ValueChanged<DateTime>? onEndDateChanged,
  41. DateTimeRange<DateTime>? selectedRange,
  42. TextStyle? selectedCellsTextStyle,
  43. BoxDecoration? selectedCellsDecoration,
  44. TextStyle? singleSelectedCellTextStyle,
  45. 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,
});