CalendarConfig constructor

const CalendarConfig({
  1. CalendarSystem system = CalendarSystem.gregorian,
  2. int firstDayOfWeek = 1,
  3. Locale locale = const Locale('zh', 'CN'),
  4. CalendarViewType viewType = CalendarViewType.month,
  5. bool showWeekNumber = false,
  6. bool showLunar = true,
  7. bool showHolidays = true,
  8. bool showSolarTerms = true,
  9. int dayStartHour = 0,
  10. int dayEndHour = 24,
  11. int timeSlotMinutes = 30,
  12. SelectionMode selectionMode = SelectionMode.single,
  13. bool enableDrag = false,
  14. bool enableResize = false,
  15. bool enableCreate = true,
  16. DateTime? minDate,
  17. DateTime? maxDate,
  18. Set<DateTime>? disabledDates,
})

Implementation

const CalendarConfig({
  this.system = CalendarSystem.gregorian,
  this.firstDayOfWeek = 1,
  this.locale = const Locale('zh', 'CN'),
  this.viewType = CalendarViewType.month,
  this.showWeekNumber = false,
  this.showLunar = true,
  this.showHolidays = true,
  this.showSolarTerms = true,
  this.dayStartHour = 0,
  this.dayEndHour = 24,
  this.timeSlotMinutes = 30,
  this.selectionMode = SelectionMode.single,
  this.enableDrag = false,
  this.enableResize = false,
  this.enableCreate = true,
  this.minDate,
  this.maxDate,
  this.disabledDates,
});