DayView<T> constructor
const
DayView<T> ({
- Key? key,
- EventTileBuilder<
T> ? eventTileBuilder, - EventController<
T> ? controller, - bool showVerticalLine = true,
- Duration pageTransitionDuration = const Duration(milliseconds: 300),
- Curve pageTransitionCurve = Curves.ease,
- double? width,
- DateTime? minDay,
- DateTime? maxDay,
- DateTime? initialDay,
- HourIndicatorSettings? hourIndicatorSettings,
- double heightPerMinute = 0.7,
- DateWidgetBuilder? timeLineBuilder,
- double? timeLineWidth,
- double timeLineOffset = 0,
- bool showLiveTimeLineInAllDays = false,
- HourIndicatorSettings? liveTimeIndicatorSettings,
- CalendarPageChangeCallBack? onPageChange,
- DateWidgetBuilder? dayTitleBuilder,
- EventArranger<
T> ? eventArranger, - double verticalLineOffset = 10,
- Color? backgroundColor = Colors.white,
- double scrollOffset = 0.0,
- CellTapCallback<
T> ? onEventTap, - 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);