ZdsCalendar.weekly constructor
- {required List<
CalendarEvent> events, - Key? key,
- bool showAllButton = false,
- void onAllSelected( )?,
- DateTime? firstDay,
- DateTime? lastDay,
- DateTime? initialSelectedDay,
- DateTime? selectedDay,
- StartingDayOfWeek? startingDayOfWeek,
- DateTime? initialSelectedWeek,
- bool isRangeSelectable = false,
- bool isGridShown = false,
- List<
WeekIcon> ? weekIcons, - void onDaySelected( )?,
- void onRangeSelected( )?,
- void onPageChanged( )?,
- void onFormatChanged( )?,
- EdgeInsets headerPadding = const EdgeInsets.fromLTRB(4, 8, 8, 8),
- Widget? singleMarkerBuilder(
- BuildContext,
- DateTime,
- dynamic
- AvailableGestures availableGestures = AvailableGestures.horizontalSwipe,
- bool enabled = true,
- Color? calendarHeaderIconColor,
- Color? calendarHeaderTextColor,
- Color? calendarTextColor,
- List<
DateTime> holidayEvents = const [], - String? allCustomLabel,
- double? calendarRowHeight,
- String? previousTooltip,
- 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;