CalendarConfig constructor
const
CalendarConfig({
- CalendarSystem system = CalendarSystem.gregorian,
- int firstDayOfWeek = 1,
- Locale locale = const Locale('zh', 'CN'),
- CalendarViewType viewType = CalendarViewType.month,
- bool showWeekNumber = false,
- bool showLunar = true,
- bool showHolidays = true,
- bool showSolarTerms = true,
- int dayStartHour = 0,
- int dayEndHour = 24,
- int timeSlotMinutes = 30,
- SelectionMode selectionMode = SelectionMode.single,
- bool enableDrag = false,
- bool enableResize = false,
- bool enableCreate = true,
- DateTime? minDate,
- DateTime? maxDate,
- 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,
});