PickerPlusRangeDatePicker constructor

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