MonthView<T> class

Inheritance

Constructors

MonthView({Key? key, bool showBorder = true, Color borderColor = Constants.defaultBorderColor, CellBuilder<T>? cellBuilder, DateTime? minMonth, DateTime? maxMonth, EventController<T>? controller, DateTime? initialMonth, double borderSize = 1, 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})
Main Widget to display month view.
const

Properties

borderColor Color
Defines width of default border
final
borderSize double
Defines width of default border
final
cellAspectRatio double
Defines aspect ratio of day cells in month calendar page.
final
cellBuilder CellBuilder<T>?
A function that returns a Widget that determines appearance of each cell in month calendar.
final
controller EventController<T>?
A required parameters that controls events for month view.
final
hashCode int
The hash code for this object.
no setterinherited
headerBuilder DateWidgetBuilder?
Builds month page title.
final
initialMonth DateTime?
Defines initial display month.
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
maxMonth DateTime?
Determines upper boundary user can scroll.
final
minMonth DateTime?
Determines the lower boundary user can scroll.
final
onCellTap CellTapCallback<T>?
This function will be called when user taps on month view cell.
final
onDateLongPress DatePressCallback?
This method will be called when user long press on calendar.
final
onEventTap TileTapCallback<T>?
This function will be called when user will tap on a single event tile inside a cell.
final
onPageChange CalendarPageChangeCallBack?
Called when user changes month.
final
pageTransitionCurve Curve
Page transition curve used when user try to change page using MonthView.nextPage or MonthView.previousPage
final
pageTransitionDuration Duration
Page transition duration used when user try to change page using MonthView.nextPage or MonthView.previousPage
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
showBorder bool
Defines whether to show default borders or not.
final
weekDayBuilder WeekDayBuilder?
Builds the name of the weeks.
final
width double?
Width of month view.
final

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() MonthViewState<T>
Creates the mutable state for this widget at a given location in the tree.
override
debugDescribeChildren() List<DiagnosticsNode>
Returns a list of DiagnosticsNode objects describing this node's children.
inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) String
A string representation of this object.
inherited
toStringDeep({String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a string representation of this node and its descendants.
inherited
toStringShallow({String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a one-line detailed description of the object.
inherited
toStringShort() String
A short, textual description of this widget.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited