MonthView<T extends Object?> constructor
const
MonthView<T extends Object?> ({
- Key? key,
- bool showBorder = true,
- Color borderColor = Constants.defaultBorderColor,
- CellBuilder<
T> ? cellBuilder, - DateTime? minMonth,
- DateTime? maxMonth,
- EventController<
T> ? controller, - DateTime? initialMonth,
- double borderSize = 1,
- bool useAvailableVerticalSpace = false,
- double cellAspectRatio = 0.55,
- DateWidgetBuilder? headerBuilder,
- WeekDayBuilder? weekDayBuilder,
- Duration pageTransitionDuration = const Duration(milliseconds: 300),
- Curve pageTransitionCurve = Curves.ease,
- double? width,
- CalendarPageChangeCallBack? onPageChange,
- CellTapCallback<
T> ? onCellTap, - TileTapCallback<
T> ? onEventTap, - DatePressCallback? onDateLongPress,
- WeekDays startDay = WeekDays.monday,
- StringProvider? headerStringBuilder,
- StringProvider? dateStringBuilder,
- String weekDayStringBuilder()?,
- HeaderStyle headerStyle = const HeaderStyle(),
- SafeAreaOption safeAreaOption = const SafeAreaOption(),
- HeaderTitleCallback? onHeaderTitleTap,
- ScrollPhysics pagePhysics = const ClampingScrollPhysics(),
Main Widget to display month view.
Implementation
const MonthView({
Key? key,
this.showBorder = true,
this.borderColor = Constants.defaultBorderColor,
this.cellBuilder,
this.minMonth,
this.maxMonth,
this.controller,
this.initialMonth,
this.borderSize = 1,
this.useAvailableVerticalSpace = false,
this.cellAspectRatio = 0.55,
this.headerBuilder,
this.weekDayBuilder,
this.pageTransitionDuration = const Duration(milliseconds: 300),
this.pageTransitionCurve = Curves.ease,
this.width,
this.onPageChange,
this.onCellTap,
this.onEventTap,
this.onDateLongPress,
this.startDay = WeekDays.monday,
this.headerStringBuilder,
this.dateStringBuilder,
this.weekDayStringBuilder,
this.headerStyle = const HeaderStyle(),
this.safeAreaOption = const SafeAreaOption(),
this.onHeaderTitleTap,
this.pagePhysics = const ClampingScrollPhysics(),
}) : assert(!(onHeaderTitleTap != null && headerBuilder != null),
"can't use [onHeaderTitleTap] & [headerBuilder] simultaneously"),
super(key: key);