HorizontalWeeklyCalendar constructor
const
HorizontalWeeklyCalendar({
- Key? key,
- required DateTime initialDate,
- required DateTime selectedDate,
- required ValueChanged<
DateTime> onDateSelected, - required dynamic onNextMonth(),
- required dynamic onPreviousMonth(),
- HorizontalCalendarType calendarType = HorizontalCalendarType.standard,
- HorizontalCalendarStyle calendarStyle = const HorizontalCalendarStyle(),
- Duration? animationDuration,
- Curve? animationCurve,
- bool showMonthHeader = true,
- IconData? previousMonthIcon = Icons.chevron_left,
- IconData? nextMonthIcon = Icons.chevron_right,
- Color? iconColor,
- Weekday? startingDay,
- bool enableAnimations = true,
- DateTime? minDate,
- 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,
});