DateRanger class

Inheritance

Constructors

DateRanger({Key? key, Color? borderColors, Color? backgroundColor, Color? errorColor, Color? rangeBackground, Color? activeItemBackground, DateTimeRange? initialRange, DateTime? initialDate, OnRangeChanged? onRangeChanged, Color? inRangeTextColor, Color? outOfRangeTextColor, DateRangerType rangerType = DateRangerType.range, DateFormat? outputDateFormat, double activeDateFontSize = 16.0, double horizontalPadding = 8, double verticalPadding = 24, double itemHeight = 32, double runSpacing = 10, double activeDateBottomSpace = 10, bool showDoubleTapInfo = true, int minYear = 1940, int maxYear = 2100, bool showWeekDay = false})
A date picker for selecting single dates and date ranges
const

Properties

activeDateBottomSpace double
The minimum vertical space between the activeDate and the dates(_days).
final
activeDateFontSize double
FontSize of the text showing the month and year of the picker.
final
activeItemBackground Color?
The background color of active dates both Start and End dates.
final
backgroundColor Color?
The background color of the date picker.
final
borderColors Color?
The border color of the active date type Start date or End date and the selected Day. It is also used as the color of the chevrons that control moving from one month to another.
final
errorColor Color?
The text color for errors that occur when selecting date.
final
hashCode int
The hash code for this object.
no setterinherited
horizontalPadding double
The horizontal padding of the main picker. Affects the height of the main picker
final
initialDate DateTime?
The initial Date of the picker.
final
initialRange DateTimeRange?
The initial DateTimeRange of the picker.
final
inRangeTextColor Color?
The text color of dates(days) that are in range of the selected Start and End dates.
final
itemHeight double
The height of each date(days).
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
maxYear int
final
minYear int
final
onRangeChanged OnRangeChanged?
A callback function for the selected date(s).
final
outOfRangeTextColor Color?
The text color of dates that are not in the range of the selected start and end dates.
final
outputDateFormat → DateFormat?
The DateFormat used for the selection outputs
final
rangeBackground Color?
The background color of dates that are in range of the selected Start and End dates.
final
rangerType DateRangerType
Defines the type of picker.
final
runSpacing double
The vertical space between dates(days).
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
showDoubleTapInfo bool
final
showWeekDay bool
iftrue constrain the width of the widget to hold only 7 days iffalse the widget is responsive and has no fixed width
final
verticalPadding double
final

Methods

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