ZdsCalendar constructor

const ZdsCalendar(
  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. List<WeekIcon>? weekIcons,
  12. bool isRangeSelectable = false,
  13. bool isGridShown = false,
  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}
)

Calendar widget that allows to switch between a monthly and weekly format. As such, the calendar header will always be shown. To not show the calendar header and use a monthly format, use ZdsCalendar.monthly instead.

Implementation

const ZdsCalendar