ZoomableHeadersWidget<S extends ZoomableHeaderWidgetStyle, C extends ZoomController> class abstract

A widget which is showing both headers and can be zoomed.

Inheritance
Implementers

Constructors

ZoomableHeadersWidget({Key? key, required S style, required HoursColumnStyle hoursColumnStyle, bool inScrollableWidget = true, HourMinute minimumTime = HourMinute.min, HourMinute maximumTime = HourMinute.max, required DateTime initialTime, bool userZoomable = true, CurrentTimeIndicatorBuilder? currentTimeIndicatorBuilder = DefaultBuilders.defaultCurrentTimeIndicatorBuilder, HoursColumnTapCallback? onHoursColumnTappedDown, DayBarTapCallback? onDayBarTappedDown, BackgroundTapCallback? onBackgroundTappedDown, DragAndDropOptions? dragAndDropOptions, ResizeEventOptions? resizeEventOptions, required C controller, HoursColumnTimeBuilder? hoursColumnTimeBuilder = DefaultBuilders.defaultHoursColumnTimeBuilder, HoursColumnBackgroundBuilder? hoursColumnBackgroundBuilder, bool isRTL = false})
Creates a new zoomable headers widget instance.
const

Properties

controller → C
The current day view controller.
final
currentTimeIndicatorBuilder CurrentTimeIndicatorBuilder?
The current time indicator builder.
final
dragAndDropOptions DragAndDropOptions?
Configures the behavior for drag-and-drop of events. If this is null (which is the default), drag-and-drop is disabled.
final
hashCode int
The hash code for this object.
no setterinherited
hoursColumnBackgroundBuilder HoursColumnBackgroundBuilder?
Building method for building background decoration below single time displayed on the side border.
final
hoursColumnStyle HoursColumnStyle
The hours column style.
final
hoursColumnTimeBuilder HoursColumnTimeBuilder?
Building method for building the time displayed on the side border.
final
initialTime DateTime
The initial visible time. Defaults to the current hour of the day (if possible).
final
inScrollableWidget bool
Whether the widget should automatically be placed in a scrollable widget.
final
isRTL bool
Whether the widget should be aligned from right to left.
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
maximumTime HourMinute
The maximum time to display.
final
minimumTime HourMinute
The minimum time to display.
final
onBackgroundTappedDown BackgroundTapCallback?
Triggered when there's a click on the background (an empty region of the calendar). The returned value corresponds to the hour/minute where the user made the tap. For better user experience, you may want to round this value using roundTimeToFitGrid.
final
onDayBarTappedDown DayBarTapCallback?
Triggered when the day bar has been tapped down.
final
onHoursColumnTappedDown HoursColumnTapCallback?
Triggered when the hours column has been tapped down.
final
resizeEventOptions ResizeEventOptions?
Configures the behavior for resizing events. When resizing is enabled, users can drag the end of events to increase/decrease their duration. If this is null (which is the default), resizing is disabled.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
style → S
The widget style.
final
userZoomable bool
Whether the user is able to pinch-to-zoom the widget.
final

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() State<StatefulWidget>
Creates the mutable state for this widget at a given 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}) 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