WeeklyTimetable constructor

const WeeklyTimetable({
  1. Key? key,
  2. required List<String> columnHeaders,
  3. required Map<String, List<TimetableEvent>> events,
  4. int? startTime,
  5. int? endTime,
  6. double headerHeight = 30.0,
  7. double timeHeaderWidth = 30.0,
  8. double cellHeight = 60.0,
  9. Color gridColor = const Color(0xFFE0E0E0),
  10. Color? headerBackgroundColor,
  11. Color? timeHeaderBackgroundColor,
  12. Color? cellBackgroundColor,
  13. BoxDecoration? headerDecoration,
  14. BoxDecoration? timeHeaderDecoration,
  15. BoxDecoration? cellDecoration,
  16. BoxDecoration? eventCellDecoration,
  17. TextStyle? headerTextStyle,
  18. TextStyle? timeTextStyle,
  19. TextStyle? eventTextStyle,
  20. BorderRadius? borderRadius,
  21. dynamic onEventTap(
    1. TimetableEvent
    )?,
})

Implementation

const WeeklyTimetable({
  super.key,
  required this.columnHeaders,
  required this.events,
  this.startTime,
  this.endTime,
  this.headerHeight = 30.0,
  this.timeHeaderWidth = 30.0,
  this.cellHeight = 60.0,
  this.gridColor = const Color(0xFFE0E0E0),
  this.headerBackgroundColor,
  this.timeHeaderBackgroundColor,
  this.cellBackgroundColor,
  this.headerDecoration,
  this.timeHeaderDecoration,
  this.cellDecoration,
  this.eventCellDecoration,
  this.headerTextStyle,
  this.timeTextStyle,
  this.eventTextStyle,
  this.borderRadius,
  this.onEventTap,
});