Calendar constructor
Calendar({
- ValueChanged<
DateTime> ? onMonthChanged, - ValueChanged<
DateTime> ? onDateSelected, - ValueChanged? onRangeSelected,
- ValueChanged<
bool> ? onExpandStateChanged, - ValueChanged<
NeatCleanCalendarEvent> ? onEventSelected, - ValueChanged<
NeatCleanCalendarEvent> ? onEventLongPressed, - bool hideBottomBar = false,
- bool isExpandable = false,
- Map<
DateTime, List< ? events,NeatCleanCalendarEvent> > - List<
NeatCleanCalendarEvent> ? eventsList, - DayBuilder? dayBuilder,
- EventListBuilder? eventListBuilder,
- DatePickerType? datePickerType = DatePickerType.hidden,
- bool hideTodayIcon = false,
- bool hideArrows = false,
- Color? defaultDayColor = Colors.black87,
- Color? defaultOutOfMonthDayColor,
- Color? selectedColor = Colors.pink,
- Color? selectedTodayColor,
- Color? todayColor,
- String todayButtonText = 'Today',
- String allDayEventText = 'All Day',
- String multiDayEndText = 'End',
- 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',
- TextStyle? displayMonthTextStyle,
- DatePickerConfig? datePickerConfig,
- double? eventTileHeight,
- bool showEvents = true,
Configures the date picker if enabled
Implementation
Calendar({
this.onMonthChanged,
this.onDateSelected,
this.onRangeSelected,
this.onExpandStateChanged,
this.onEventSelected,
this.onEventLongPressed,
this.hideBottomBar = false,
this.isExpandable = false,
this.events,
this.eventsList,
this.dayBuilder,
this.eventListBuilder,
this.datePickerType = DatePickerType.hidden,
this.hideTodayIcon = false,
this.hideArrows = false,
this.defaultDayColor = Colors.black87,
this.defaultOutOfMonthDayColor,
this.selectedColor = Colors.pink,
this.selectedTodayColor,
this.todayColor,
this.todayButtonText = 'Today',
this.allDayEventText = 'All Day',
this.multiDayEndText = 'End',
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',
this.displayMonthTextStyle,
this.datePickerConfig,
this.eventTileHeight,
this.showEvents = true,
});