WeekCalendar.outlined constructor
const
WeekCalendar.outlined({
- Key? key,
- required DateTime initialDate,
- required DateTime selectedDate,
- required ValueChanged<
DateTime> onDateSelected, - VoidCallback? onNextMonth,
- VoidCallback? onPreviousMonth,
- VoidCallback? onPreviousWeek,
- VoidCallback? onNextWeek,
- WeekCalendarStyle calendarStyle = const WeekCalendarStyle(),
- Duration? animationDuration,
- Curve? animationCurve,
- bool showMonthHeader = true,
- IconData? previousMonthIcon = Icons.chevron_left,
- IconData? nextMonthIcon = Icons.chevron_right,
- Color? iconColor,
- Weekday? startingDay,
- bool enableAnimations = true,
- dynamic onHeaderDateTapped(
- Offset widgetPosition
- dynamic onHeaderTodayDate(
- Offset widgetPosition
- bool isUtc = true,
- bool showCalendarPopupOnHeaderTap = true,
Preconfigured constructor for outlined variant
Implementation
const WeekCalendar.outlined({
super.key,
required this.initialDate,
required this.selectedDate,
required this.onDateSelected,
this.onNextMonth,
this.onPreviousMonth,
this.onPreviousWeek,
this.onNextWeek,
this.calendarStyle = const WeekCalendarStyle(),
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.onHeaderDateTapped,
this.onHeaderTodayDate,
this.isUtc = true,
this.showCalendarPopupOnHeaderTap = true,
}) : calendarType = WeekCalendarType.outlined;