DayView<T> constructor

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

Main widget for day view.

Implementation

const DayView({
  Key? key,
  this.eventTileBuilder,
  this.controller,
  this.showVerticalLine = true,
  this.pageTransitionDuration = const Duration(milliseconds: 300),
  this.pageTransitionCurve = Curves.ease,
  this.width,
  this.minDay,
  this.maxDay,
  this.initialDay,
  this.hourIndicatorSettings,
  this.heightPerMinute = 0.7,
  this.timeLineBuilder,
  this.timeLineWidth,
  this.timeLineOffset = 0,
  this.showLiveTimeLineInAllDays = false,
  this.liveTimeIndicatorSettings,
  this.onPageChange,
  this.dayTitleBuilder,
  this.eventArranger,
  this.verticalLineOffset = 10,
  this.backgroundColor = Colors.white,
  this.scrollOffset = 0.0,
  this.onEventTap,
  this.onDateLongPress,
})  : assert((timeLineOffset) >= 0,
          "timeLineOffset must be greater than or equal to 0"),
      super(key: key);