WeekView<T> constructor

const WeekView<T>({
  1. Key? key,
  2. EventController<T>? controller,
  3. EventTileBuilder<T>? eventTileBuilder,
  4. Duration pageTransitionDuration = const Duration(milliseconds: 300),
  5. Curve pageTransitionCurve = Curves.ease,
  6. double heightPerMinute = 1,
  7. double timeLineOffset = 0,
  8. bool showLiveTimeLineInAllDays = false,
  9. double? width,
  10. DateTime? minDay,
  11. DateTime? maxDay,
  12. DateTime? initialDay,
  13. HourIndicatorSettings? hourIndicatorSettings,
  14. DateWidgetBuilder? timeLineBuilder,
  15. double? timeLineWidth,
  16. HourIndicatorSettings? liveTimeIndicatorSettings,
  17. CalendarPageChangeCallBack? onPageChange,
  18. WeekPageHeaderBuilder? weekPageHeaderBuilder,
  19. EventArranger<T>? eventArranger,
  20. double weekTitleHeight = 50,
  21. DateWidgetBuilder? weekDayBuilder,
  22. Color backgroundColor = Colors.white,
  23. double scrollOffset = 0.0,
  24. CellTapCallback<T>? onEventTap,
  25. DatePressCallback? onDateLongPress,
  26. List<WeekDays> weekDays = WeekDays.values,
  27. bool showWeekends = true,
})

Main widget for week view.

Implementation

const WeekView({
  Key? key,
  this.controller,
  this.eventTileBuilder,
  this.pageTransitionDuration = const Duration(milliseconds: 300),
  this.pageTransitionCurve = Curves.ease,
  this.heightPerMinute = 1,
  this.timeLineOffset = 0,
  this.showLiveTimeLineInAllDays = false,
  this.width,
  this.minDay,
  this.maxDay,
  this.initialDay,
  this.hourIndicatorSettings,
  this.timeLineBuilder,
  this.timeLineWidth,
  this.liveTimeIndicatorSettings,
  this.onPageChange,
  this.weekPageHeaderBuilder,
  this.eventArranger,
  this.weekTitleHeight = 50,
  this.weekDayBuilder,
  this.backgroundColor = Colors.white,
  this.scrollOffset = 0.0,
  this.onEventTap,
  this.onDateLongPress,
  this.weekDays = WeekDays.values,
  this.showWeekends = true,
}) : super(key: key);