EasyInfiniteDateTimeLine class

Inheritance

Constructors

EasyInfiniteDateTimeLine.new({Key? key, List<DateTime>? disabledDates, EasyTimeLineProps timeLineProps = const EasyTimeLineProps(), EasyDayProps dayProps = const EasyDayProps(), OnDateChangeCallBack? onDateChange, ItemBuilderCallBack? itemBuilder, Color? activeColor, String locale = "en_US", EasyInfiniteDateTimelineController? controller, bool showTimelineHeader = true, HeaderBuilderCallBack? headerBuilder, SelectionMode selectionMode = const SelectionMode.autoCenter(), ScrollPhysics? physics, required DateTime firstDate, required DateTime? focusDate, required DateTime lastDate})
A widget that displays an infinite date timeline.
const

Properties

activeColor Color?
The color for the active day.
final
controller EasyInfiniteDateTimelineController?
The controller to manage the EasyInfiniteDateTimeline. Allows programmatic control over the timeline, such as scrolling to a specific date or scrolling to the focus date.
final
dayProps EasyDayProps
Contains properties for configuring the appearance and behavior of the day widgets in the timeline. This includes properties such as the width and height of each day widget, the color of the text and background, and the font size.
final
disabledDates List<DateTime>?
Represents a list of inactive dates for the timeline widget. Note that all the dates defined in the disabledDates list will be deactivated.
final
firstDate DateTime
Represents the initial date for the timeline widget. This is the date that will be displayed as the first day in the timeline.
final
focusDate DateTime?
Represents the focus date for the timeline widget. This is the date that will be displayed as the activated day in the timeline.
final
hashCode int
The hash code for this object.
no setterinherited
headerBuilder → HeaderBuilderCallBack?
The callback function used to build the header of the infinite date timeline.
final
itemBuilder → ItemBuilderCallBack?

NOTE: When utilizing the itemBuilder, it is essential to provide the width of each day for the date timeline widget.

final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
lastDate DateTime
Represents the last date for the timeline widget. This is the date that will be displayed as the last day in the timeline.
final
locale String
A String that represents the locale code to use for formatting the dates in the timeline.
final
onDateChange → OnDateChangeCallBack?
Called when the selected date in the timeline changes. This function takes a DateTime object as its parameter, which represents the new selected date.
final
physics ScrollPhysics?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
selectionMode SelectionMode
Determines the selection mode of the infinite date timeline.
final
showTimelineHeader bool
Represents whether the timeline header should be displayed or not.
final
timeLineProps EasyTimeLineProps
Contains properties for configuring the appearance and behavior of the timeline widget.
final

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() State<EasyInfiniteDateTimeLine>
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, 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