WeekView<T> constructor
const
WeekView<T> ({
- Key? key,
- EventController<
T> ? controller, - EventTileBuilder<
T> ? eventTileBuilder, - Duration pageTransitionDuration = const Duration(milliseconds: 300),
- Curve pageTransitionCurve = Curves.ease,
- double heightPerMinute = 1,
- double timeLineOffset = 0,
- bool showLiveTimeLineInAllDays = false,
- double? width,
- DateTime? minDay,
- DateTime? maxDay,
- DateTime? initialDay,
- HourIndicatorSettings? hourIndicatorSettings,
- DateWidgetBuilder? timeLineBuilder,
- double? timeLineWidth,
- HourIndicatorSettings? liveTimeIndicatorSettings,
- CalendarPageChangeCallBack? onPageChange,
- WeekPageHeaderBuilder? weekPageHeaderBuilder,
- EventArranger<
T> ? eventArranger, - double weekTitleHeight = 50,
- DateWidgetBuilder? weekDayBuilder,
- Color backgroundColor = Colors.white,
- double scrollOffset = 0.0,
- CellTapCallback<
T> ? onEventTap, - DatePressCallback? onDateLongPress,
- List<
WeekDays> weekDays = WeekDays.values, - 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);