TableWeeklyCalendar constructor
const
TableWeeklyCalendar({
- Key? key,
- required DateTime initialDate,
- required DateTime selectedDate,
- required ValueChanged<
DateTime> onDateSelected, - required ValueChanged<
DateTime> onMonthChanged, - ValueChanged<
DateTime> ? onVisibleDateTapped, - HorizontalCalendarStyle calendarStyle = const HorizontalCalendarStyle(),
- Weekday? startingDay,
- List<
FocusDate> focusDates = const [], - bool showMonthHeader = true,
- IconData? previousMonthIcon = Icons.chevron_left,
- IconData? nextMonthIcon = Icons.chevron_right,
- Color? iconColor,
- bool enableAnimations = true,
- TableWeeklyCalendarHeaderBuilder? headerBuilder,
- bool useFocusDateColor = true,
- EdgeInsetsGeometry tablePadding = const EdgeInsets.symmetric(horizontal: 0, vertical: 0),
- double horizontalSpacing = 0.0,
- double verticalSpacing = 0.0,
Creates a TableWeeklyCalendar widget.
Implementation
const TableWeeklyCalendar({
super.key,
required this.initialDate,
required this.selectedDate,
required this.onDateSelected,
required this.onMonthChanged,
this.onVisibleDateTapped,
this.calendarStyle = const HorizontalCalendarStyle(),
this.startingDay,
this.focusDates = const [],
this.showMonthHeader = true,
this.previousMonthIcon = Icons.chevron_left,
this.nextMonthIcon = Icons.chevron_right,
this.iconColor,
this.enableAnimations = true,
this.headerBuilder,
this.useFocusDateColor = true,
this.tablePadding = const EdgeInsets.symmetric(horizontal: 0, vertical: 0),
this.horizontalSpacing = 0.0,
this.verticalSpacing = 0.0,
});