HorizontalWeeklyCalendar constructor

const HorizontalWeeklyCalendar({
  1. Key? key,
  2. required DateTime initialDate,
  3. required DateTime selectedDate,
  4. required ValueChanged<DateTime> onDateSelected,
  5. required dynamic onNextMonth(),
  6. required dynamic onPreviousMonth(),
  7. HorizontalCalendarType calendarType = HorizontalCalendarType.standard,
  8. HorizontalCalendarStyle calendarStyle = const HorizontalCalendarStyle(),
  9. Duration? animationDuration,
  10. Curve? animationCurve,
  11. bool showMonthHeader = true,
  12. IconData? previousMonthIcon = Icons.chevron_left,
  13. IconData? nextMonthIcon = Icons.chevron_right,
  14. Color? iconColor,
  15. Weekday? startingDay,
  16. bool enableAnimations = true,
  17. DateTime? minDate,
  18. DateTime? maxDate,
})

Default constructor for standard calendar

Implementation

const HorizontalWeeklyCalendar({
  super.key,
  required this.initialDate,
  required this.selectedDate,
  required this.onDateSelected,
  required this.onNextMonth,
  required this.onPreviousMonth,
  this.calendarType = HorizontalCalendarType.standard,
  this.calendarStyle = const HorizontalCalendarStyle(),
  this.animationDuration,
  this.animationCurve,
  this.showMonthHeader = true,
  this.previousMonthIcon = Icons.chevron_left,
  this.nextMonthIcon = Icons.chevron_right,
  this.iconColor,
  this.startingDay,
  this.enableAnimations = true,
  this.minDate,
  this.maxDate,
});