ZdsCalendar.monthly constructor

const ZdsCalendar.monthly(
  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 hasHeader = true,
  12. List<WeekIcon>? weekIcons,
  13. bool isRangeSelectable = false,
  14. bool isGridShown = false,
  15. void onDaySelected(
    1. DateTime,
    2. DateTime
    )?,
  16. void onRangeSelected(
    1. DateTime?,
    2. DateTime?,
    3. DateTime
    )?,
  17. void onPageChanged(
    1. DateTime
    )?,
  18. void onFormatChanged(
    1. CalendarFormat
    )?,
  19. EdgeInsets headerPadding = const EdgeInsets.fromLTRB(4, 8, 8, 8),
  20. Widget? singleMarkerBuilder(
    1. BuildContext,
    2. DateTime,
    3. dynamic
    )?,
  21. AvailableGestures availableGestures = AvailableGestures.horizontalSwipe,
  22. bool enabled = true,
  23. Color? calendarHeaderIconColor,
  24. Color? calendarHeaderTextColor,
  25. Color? calendarTextColor,
  26. List<DateTime> holidayEvents = const [],
  27. String? allCustomLabel,
  28. double? calendarRowHeight,
  29. String? previousTooltip,
  30. String? nextTooltip}
)

Shows a calendar in a fixed monthly format.

Implementation

const ZdsCalendar.monthly({
  required this.events,
  super.key,
  this.showAllButton = false,
  this.onAllSelected,
  this.firstDay,
  this.lastDay,
  this.initialSelectedDay,
  this.selectedDay,
  this.startingDayOfWeek,
  this.initialSelectedWeek,
  this.hasHeader = true,
  this.weekIcons,
  this.isRangeSelectable = false,
  this.isGridShown = false,
  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.monthly;