Calendar constructor

Calendar({
  1. ValueChanged<DateTime>? onMonthChanged,
  2. ValueChanged<DateTime>? onDateSelected,
  3. ValueChanged? onRangeSelected,
  4. ValueChanged<bool>? onExpandStateChanged,
  5. ValueChanged<NeatCleanCalendarEvent>? onEventSelected,
  6. ValueChanged<NeatCleanCalendarEvent>? onEventLongPressed,
  7. bool hideBottomBar = false,
  8. bool isExpandable = false,
  9. Map<DateTime, List<NeatCleanCalendarEvent>>? events,
  10. List<NeatCleanCalendarEvent>? eventsList,
  11. DayBuilder? dayBuilder,
  12. EventListBuilder? eventListBuilder,
  13. DatePickerType? datePickerType = DatePickerType.hidden,
  14. bool hideTodayIcon = false,
  15. bool hideArrows = false,
  16. Color? defaultDayColor = Colors.black87,
  17. Color? defaultOutOfMonthDayColor,
  18. Color? selectedColor = Colors.pink,
  19. Color? selectedTodayColor,
  20. Color? todayColor,
  21. String todayButtonText = 'Today',
  22. String allDayEventText = 'All Day',
  23. String multiDayEndText = 'End',
  24. Color? eventColor,
  25. Color? eventDoneColor,
  26. DateTime? initialDate,
  27. bool isExpanded = false,
  28. List<String> weekDays = const ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'],
  29. String? locale = 'en_US',
  30. bool startOnMonday = false,
  31. TextStyle? dayOfWeekStyle,
  32. TextStyle? bottomBarTextStyle,
  33. Color? bottomBarArrowColor,
  34. Color? bottomBarColor,
  35. String? expandableDateFormat = 'EEEE MMMM dd, yyyy',
  36. TextStyle? displayMonthTextStyle,
  37. DatePickerConfig? datePickerConfig,
  38. double? eventTileHeight,
  39. 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,
});