TableWeeklyCalendar constructor

const TableWeeklyCalendar({
  1. Key? key,
  2. required DateTime initialDate,
  3. required DateTime selectedDate,
  4. required ValueChanged<DateTime> onDateSelected,
  5. required ValueChanged<DateTime> onMonthChanged,
  6. ValueChanged<DateTime>? onVisibleDateTapped,
  7. HorizontalCalendarStyle calendarStyle = const HorizontalCalendarStyle(),
  8. Weekday? startingDay,
  9. List<FocusDate> focusDates = const [],
  10. bool showMonthHeader = true,
  11. IconData? previousMonthIcon = Icons.chevron_left,
  12. IconData? nextMonthIcon = Icons.chevron_right,
  13. Color? iconColor,
  14. bool enableAnimations = true,
  15. TableWeeklyCalendarHeaderBuilder? headerBuilder,
  16. bool useFocusDateColor = true,
  17. EdgeInsetsGeometry tablePadding = const EdgeInsets.symmetric(horizontal: 0, vertical: 0),
  18. double horizontalSpacing = 0.0,
  19. 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,
});