ZdsCalendar.weekly constructor

const ZdsCalendar.weekly(
  1. {required List<CalendarEvent> events,
  2. Key? key,
  3. bool showAllButton = false,
  4. void onAllSelected(
    1. DateTime?,
    2. DateTime?,
    3. DateTime
    )?,
  5. DateTime? firstDay,
  6. DateTime? lastDay,
  7. DateTime? initialSelectedDay,
  8. DateTime? selectedDay,
  9. StartingDayOfWeek? startingDayOfWeek,
  10. DateTime? initialSelectedWeek,
  11. bool isRangeSelectable = false,
  12. bool isGridShown = false,
  13. List<WeekIcon>? weekIcons,
  14. void onDaySelected(
    1. DateTime,
    2. DateTime
    )?,
  15. void onRangeSelected(
    1. DateTime?,
    2. DateTime?,
    3. DateTime
    )?,
  16. void onPageChanged(
    1. DateTime
    )?,
  17. void onFormatChanged(
    1. CalendarFormat
    )?,
  18. EdgeInsets headerPadding = const EdgeInsets.fromLTRB(4, 8, 8, 8),
  19. Widget? singleMarkerBuilder(
    1. BuildContext,
    2. DateTime,
    3. dynamic
    )?,
  20. AvailableGestures availableGestures = AvailableGestures.horizontalSwipe,
  21. bool enabled = true,
  22. Color? calendarHeaderIconColor,
  23. Color? calendarHeaderTextColor,
  24. Color? calendarTextColor,
  25. List<DateTime> holidayEvents = const [],
  26. String? allCustomLabel,
  27. double? calendarRowHeight,
  28. String? previousTooltip,
  29. String? nextTooltip}
)

Shows a calendar in a fixed weekly format.

Implementation

const ZdsCalendar.weekly({
  required this.events,
  super.key,
  this.showAllButton = false,
  this.onAllSelected,
  this.firstDay,
  this.lastDay,
  this.initialSelectedDay,
  this.selectedDay,
  this.startingDayOfWeek,
  this.initialSelectedWeek,
  this.isRangeSelectable = false,
  this.isGridShown = false,
  this.weekIcons,
  this.onDaySelected,
  this.onRangeSelected,
  this.onPageChanged,
  this.onFormatChanged,
  this.headerPadding = const EdgeInsets.fromLTRB(4, 8, 8, 8),
  this.singleMarkerBuilder,
  this.availableGestures = AvailableGestures.horizontalSwipe,
  this.enabled = true,
  this.calendarHeaderIconColor,
  this.calendarHeaderTextColor,
  this.calendarTextColor,
  this.holidayEvents = const [],
  this.allCustomLabel,
  this.calendarRowHeight,
  this.previousTooltip,
  this.nextTooltip,
})  : _variant = _ZdsCalendarVariant.weekly,
      hasHeader = false;