MonthView<T extends Object?> constructor

const MonthView<T extends Object?>({
  1. Key? key,
  2. bool showBorder = true,
  3. Color borderColor = Constants.defaultBorderColor,
  4. CellBuilder<T>? cellBuilder,
  5. DateTime? minMonth,
  6. DateTime? maxMonth,
  7. EventController<T>? controller,
  8. DateTime? initialMonth,
  9. double borderSize = 1,
  10. bool useAvailableVerticalSpace = false,
  11. double cellAspectRatio = 0.55,
  12. DateWidgetBuilder? headerBuilder,
  13. WeekDayBuilder? weekDayBuilder,
  14. Duration pageTransitionDuration = const Duration(milliseconds: 300),
  15. Curve pageTransitionCurve = Curves.ease,
  16. double? width,
  17. CalendarPageChangeCallBack? onPageChange,
  18. CellTapCallback<T>? onCellTap,
  19. TileTapCallback<T>? onEventTap,
  20. DatePressCallback? onDateLongPress,
  21. WeekDays startDay = WeekDays.monday,
  22. StringProvider? headerStringBuilder,
  23. StringProvider? dateStringBuilder,
  24. String weekDayStringBuilder(
    1. int
    )?,
  25. HeaderStyle headerStyle = const HeaderStyle(),
  26. SafeAreaOption safeAreaOption = const SafeAreaOption(),
  27. HeaderTitleCallback? onHeaderTitleTap,
  28. 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);