Timetable<T> constructor

const Timetable<T>({
  1. Key? key,
  2. TimetableController? controller,
  3. Widget cellBuilder(
    1. DateTime
    )?,
  4. Widget headerCellBuilder(
    1. DateTime
    )?,
  5. List<TimetableItem<T>> items = const [],
  6. Widget itemBuilder(
    1. TimetableItem<T>
    )?,
  7. Widget hourLabelBuilder(
    1. TimeOfDay time
    )?,
  8. Color? nowIndicatorColor,
  9. Widget cornerBuilder(
    1. DateTime current
    )?,
  10. bool snapToDay = true,
  11. Duration snapAnimationDuration = const Duration(milliseconds: 300),
  12. Curve snapAnimationCurve = Curves.bounceOut,
})

The Timetable widget displays calendar like view of the events that scrolls horizontally through the days and vertical through the hours.

Implementation

const Timetable({
  super.key,
  this.controller,
  this.cellBuilder,
  this.headerCellBuilder,
  this.items = const [],
  this.itemBuilder,
  this.hourLabelBuilder,
  this.nowIndicatorColor,
  this.cornerBuilder,
  this.snapToDay = true,
  this.snapAnimationDuration = const Duration(milliseconds: 300),
  this.snapAnimationCurve = Curves.bounceOut,
});