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, - TileTapCallback<
T> ? onEventLongTap, - 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(),
- ScrollPhysics? pageViewPhysics,
- TileTapCallback<
T> ? onEventDoubleTap, - bool showWeekTileBorder = true,
- bool hideDaysNotInMonth = false,
- dynamic pageController(
- PageController pageController
- Color? backgroundHeaderColor,
Main Widget to display month view.
Implementation
const MonthView({
super.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.onEventLongTap,
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(),
this.pageViewPhysics,
this.onEventDoubleTap,
this.showWeekTileBorder = true,
this.hideDaysNotInMonth = false,
this.pageController,
this.backgroundHeaderColor,
}) : assert(!(onHeaderTitleTap != null && headerBuilder != null),
"can't use [onHeaderTitleTap] & [headerBuilder] simultaneously");