MonthGridCalendar class
A widget that displays a monthly calendar grid with events.
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatelessWidget
- MonthGridCalendar
Constructors
-
MonthGridCalendar({required DateTime month, required List<
CalendarMonthEvent> events, required Widget eventBuilder(BuildContext, EventPlacement), required int maxEvents, required double dayNumberDisplaySpace, required double eventHeight, required double eventVerticalSpacing, required void showEventListModal(BuildContext, DateTime, List<CalendarMonthEvent> ), required double calendarHeight, required double scale, required void onDateTapped(DateTime), required void onDateLongPress(DateTime), required void onDragStart(DateTime), required void onDragUpdate(DateTime), required void onDragEnd(), required void onEventEdit(CalendarMonthEvent), required void onEventDelete(CalendarMonthEvent), Key? key}) -
Creates a new instance of MonthGridCalendar.
const
Properties
- calendarHeight → double
-
The height of the calendar.
final
- dayNumberDisplaySpace → double
-
The space to display the day number.
final
- eventBuilder → Widget Function(BuildContext, EventPlacement)
-
A function that builds an event.
final
- eventHeight → double
-
The height of an event.
final
-
events
→ List<
CalendarMonthEvent> -
The events to display.
final
- eventVerticalSpacing → double
-
The vertical spacing between events.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- maxEvents → int
-
The maximum number of events to display.
final
- month → DateTime
-
The month to display.
final
- onDateLongPress → void Function(DateTime)
-
Called when a date is long-pressed.
final
- onDateTapped → void Function(DateTime)
-
Called when a date is tapped.
final
- onDragEnd → void Function()
-
Called when a drag gesture ends.
final
- onDragStart → void Function(DateTime)
-
Called when a drag gesture starts.
final
- onDragUpdate → void Function(DateTime)
-
Called when a drag gesture is updated.
final
- onEventDelete → void Function(CalendarMonthEvent)
-
Called when an event is deleted.
final
- onEventEdit → void Function(CalendarMonthEvent)
-
Called when an event is edited.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- scale → double
-
The scale of the calendar.
final
-
showEventListModal
→ void Function(BuildContext, DateTime, List<
CalendarMonthEvent> ) -
A function that shows the event list modal.
final
Methods
-
build(
BuildContext context) → Widget -
Describes the part of the user interface represented by this widget.
override
-
createElement(
) → StatelessElement -
Creates a StatelessElement to manage this widget's location in the tree.
inherited
-
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, int wrapWidth = 65}) → 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