EventCalendarStyle constructor

const EventCalendarStyle({
  1. double timeSlotHeight = 60.0,
  2. double hourSlotHeight = 60.0,
  3. double timeColumnWidth = 80.0,
  4. TextStyle timeTextStyle = const TextStyle(fontSize: 12),
  5. TextStyle eventTextStyle = const TextStyle(fontSize: 12, color: Colors.white),
  6. EdgeInsets eventPadding = const EdgeInsets.symmetric(horizontal: 4, vertical: 2),
  7. BorderRadius eventBorderRadius = const BorderRadius.all(Radius.circular(4)),
  8. Color gridColor = Colors.grey,
  9. double gridWidth = 0.5,
  10. double dayHeaderHeight = 70.0,
  11. TextStyle monthHeaderStyle = const TextStyle(fontSize: 18, fontWeight: FontWeight.bold),
  12. TextStyle dayNameStyle = const TextStyle(fontSize: 12),
  13. TextStyle dayNumberStyle = const TextStyle(fontSize: 16),
  14. Color activeDayColor = Colors.blue,
  15. Color dayIndicatorColor = Colors.transparent,
  16. double dayIndicatorSize = 32.0,
  17. TextStyle selectedDayTextStyle = const TextStyle(fontSize: 16, fontWeight: FontWeight.bold),
  18. TextStyle inactiveDayTextStyle = const TextStyle(fontSize: 16),
  19. Color dividerColor = Colors.grey,
  20. double dividerThickness = 1.0,
  21. double dividerIndent = 0.0,
  22. double dividerEndIndent = 0.0,
  23. BorderStyle dividerStyle = BorderStyle.solid,
  24. Color headerDividerColor = Colors.grey,
  25. double headerDividerThickness = 1.0,
  26. double headerDividerIndent = 0.0,
  27. double headerDividerEndIndent = 0.0,
  28. 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(),
});