DayGridCalendar class
A widget that displays a single day in the calendar.
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatelessWidget
- DayGridCalendar
Constructors
-
DayGridCalendar.new({Key? key, required double calendarHeight, required double scale, required DateTime day, required List<
CalendarMonthEvent> events, required int maxEvents, required double dayNumberDisplaySpace, required double eventHeight, required double eventVerticalSpacing, required dynamic showEventListModal(BuildContext, DateTime, List<CalendarMonthEvent> ), required Widget eventBuilder(BuildContext, EventPlacement), required void onDateTapped(DateTime), required void onDateLongPress(DateTime), required void onEventEdit(CalendarMonthEvent), required void onEventDelete(CalendarMonthEvent)}) -
Creates a new instance of DayGridCalendar.
const
Properties
- calendarHeight → double
-
The height of the calendar.
final
- day → DateTime
-
The day to display.
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
- onDateLongPress → void Function(DateTime)
-
Called when a date is long-pressed.
final
- onDateTapped → void Function(DateTime)
-
Called when a date is tapped.
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
→ dynamic 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