EventCalendarStyle constructor
const
EventCalendarStyle({
- double timeSlotHeight = 60.0,
- double hourSlotHeight = 60.0,
- double timeColumnWidth = 80.0,
- TextStyle timeTextStyle = const TextStyle(fontSize: 12),
- TextStyle eventTextStyle = const TextStyle(fontSize: 12, color: Colors.white),
- EdgeInsets eventPadding = const EdgeInsets.symmetric(horizontal: 4, vertical: 2),
- BorderRadius eventBorderRadius = const BorderRadius.all(Radius.circular(4)),
- Color gridColor = Colors.grey,
- double gridWidth = 0.5,
- double dayHeaderHeight = 70.0,
- TextStyle monthHeaderStyle = const TextStyle(fontSize: 18, fontWeight: FontWeight.bold),
- TextStyle dayNameStyle = const TextStyle(fontSize: 12),
- TextStyle dayNumberStyle = const TextStyle(fontSize: 16),
- Color activeDayColor = Colors.blue,
- Color dayIndicatorColor = Colors.transparent,
- double dayIndicatorSize = 32.0,
- TextStyle selectedDayTextStyle = const TextStyle(fontSize: 16, fontWeight: FontWeight.bold),
- TextStyle inactiveDayTextStyle = const TextStyle(fontSize: 16),
- Color dividerColor = Colors.grey,
- double dividerThickness = 1.0,
- double dividerIndent = 0.0,
- double dividerEndIndent = 0.0,
- BorderStyle dividerStyle = BorderStyle.solid,
- Color headerDividerColor = Colors.grey,
- double headerDividerThickness = 1.0,
- double headerDividerIndent = 0.0,
- double headerDividerEndIndent = 0.0,
- HorizontalCalendarStyle calendarStyle = const HorizontalCalendarStyle(),
Creates a style configuration for the event calendar.
Implementation
const EventCalendarStyle({
this.timeSlotHeight = 60.0,
this.hourSlotHeight = 60.0,
this.timeColumnWidth = 80.0,
this.timeTextStyle = const TextStyle(fontSize: 12),
this.eventTextStyle = const TextStyle(fontSize: 12, color: Colors.white),
this.eventPadding = const EdgeInsets.symmetric(horizontal: 4, vertical: 2),
this.eventBorderRadius = const BorderRadius.all(Radius.circular(4)),
this.gridColor = Colors.grey,
this.gridWidth = 0.5,
this.dayHeaderHeight = 70.0,
this.monthHeaderStyle =
const TextStyle(fontSize: 18, fontWeight: FontWeight.bold),
this.dayNameStyle = const TextStyle(fontSize: 12),
this.dayNumberStyle = const TextStyle(fontSize: 16),
this.activeDayColor = Colors.blue,
this.dayIndicatorColor = Colors.transparent,
this.dayIndicatorSize = 32.0,
this.selectedDayTextStyle =
const TextStyle(fontSize: 16, fontWeight: FontWeight.bold),
this.inactiveDayTextStyle = const TextStyle(fontSize: 16),
this.dividerColor = Colors.grey,
this.dividerThickness = 1.0,
this.dividerIndent = 0.0,
this.dividerEndIndent = 0.0,
this.dividerStyle = BorderStyle.solid,
this.headerDividerColor = Colors.grey,
this.headerDividerThickness = 1.0,
this.headerDividerIndent = 0.0,
this.headerDividerEndIndent = 0.0,
this.calendarStyle = const HorizontalCalendarStyle(),
});