Calendar constructor
Calendar({
- ValueChanged<
DateTime> ? onMonthChanged, - ValueChanged<
DateTime> ? onDateSelected, - ValueChanged? onRangeSelected,
- ValueChanged<
bool> ? onExpandStateChanged, - ValueChanged<
CleanCalendarEvent> ? onEventSelected, - bool hideBottomBar = false,
- bool isExpandable = false,
- Map<
DateTime, List< ? events,CleanCalendarEvent> > - DayBuilder? dayBuilder,
- EventListBuilder? eventListBuilder,
- bool hideTodayIcon = false,
- bool hideArrows = false,
- Color? selectedColor,
- Color? todayColor,
- String todayButtonText = 'Today',
- Color? eventColor,
- Color? eventDoneColor,
- DateTime? initialDate,
- bool isExpanded = false,
- List<
String> weekDays = const ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'], - String? locale = 'en_US',
- bool startOnMonday = false,
- TextStyle? dayOfWeekStyle,
- TextStyle? bottomBarTextStyle,
- Color? bottomBarArrowColor,
- Color? bottomBarColor,
- String? expandableDateFormat = 'EEEE MMMM dd, yyyy',
Implementation
Calendar({
this.onMonthChanged,
this.onDateSelected,
this.onRangeSelected,
this.onExpandStateChanged,
this.onEventSelected,
this.hideBottomBar: false,
this.isExpandable: false,
this.events,
this.dayBuilder,
this.eventListBuilder,
this.hideTodayIcon: false,
this.hideArrows: false,
this.selectedColor,
this.todayColor,
this.todayButtonText: 'Today',
this.eventColor,
this.eventDoneColor,
this.initialDate,
this.isExpanded = false,
this.weekDays = const ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'],
this.locale = 'en_US',
this.startOnMonday = false,
this.dayOfWeekStyle,
this.bottomBarTextStyle,
this.bottomBarArrowColor,
this.bottomBarColor,
this.expandableDateFormat = 'EEEE MMMM dd, yyyy',
});