FlutterDatePickerTimeline class

Gregorian and Jalali customizable date picker as a horizontal timeline

Inheritance

Constructors

FlutterDatePickerTimeline({Key? key, CalendarMode calendarMode = CalendarMode.gregorian, required DateTime startDate, required DateTime endDate, DateTime? initialSelectedDate, DateTime? initialFocusedDate, TextDirection? textDirection, double selectedItemWidth = 170, double unselectedItemWidth = 38, double itemHeight = 38, double itemRadius = 10, EdgeInsets listViewPadding = const EdgeInsets.only(right: 5.5, left: 5.5), EdgeInsets selectedItemMargin = const EdgeInsets.only(right: 5.5, left: 5.5), EdgeInsets unselectedItemMargin = const EdgeInsets.only(right: 5.5, left: 5.5), Color selectedItemBackgroundColor = const Color(0xFF2B2C30), Color unselectedItemBackgroundColor = Colors.white, TextStyle? selectedItemTextStyle, TextStyle? unselectedItemTextStyle, required DateChangeListener onSelectedDateChange})

Properties

calendarMode → CalendarMode
Determines the FlutterDatePickerTimeline mode.
final
endDate → DateTime
The last date of FlutterDatePickerTimeline.
final
hashCode → int
The hash code for this object.
no setterinherited
initialFocusedDate → DateTime?
Initially focused date. Usually it will be DateTime.now().
final
initialSelectedDate → DateTime?
Initially selected date. Usually it will be DateTime.now().
final
itemHeight → double
Used for setting the height of selected and unselected items.
final
itemRadius → double
Used for setting the radius of selected and unselected items background.
final
key → Key?
Controls how one widget replaces another widget in the tree.
finalinherited
listViewPadding → EdgeInsets
Used for setting the padding of ListView.
final
onSelectedDateChange → DateChangeListener
Called whenever any date gets selected.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
selectedItemBackgroundColor → Color
Used for setting the color of selected items background.
final
selectedItemMargin → EdgeInsets
Used for setting the margin of selected items.
final
selectedItemTextStyle → TextStyle?
Used for setting the style of selected items Text.
final
selectedItemWidth → double
Used for setting the width of selected items.
final
startDate → DateTime
The first date of FlutterDatePickerTimeline.
final
textDirection → TextDirection?
Used for setting the textDirection of FlutterDatePickerTimeline.
final
unselectedItemBackgroundColor → Color
Used for setting the color of unselected items background.
final
unselectedItemMargin → EdgeInsets
Used for setting the margin of unselected items.
final
unselectedItemTextStyle → TextStyle?
Used for setting the style of unselected items Text.
final
unselectedItemWidth → double
Used for setting the width of unselected items.
final

Methods

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