DateSelector class

Inheritance

Constructors

DateSelector({Key? key, required dynamic selectedDate(int year, int month, int day), Color primaryColor = StandardFieldStyle.primaryColor, Color fillColor = StandardFieldStyle.fillColor, Color calendarBackgroundColor = IntelligentsiaColors.white, Color calendarFontColor = StandardFieldStyle.primaryColor, Color calendarCircleColor = StandardFieldStyle.primaryColor, Color calendarFontColorOnCircle = IntelligentsiaColors.white, String fieldName = "Date of Birth", Color? fieldNameColor, double fieldFontSize = StandardFieldStyle.fieldFontSize, FontWeight fieldFontWeight = StandardFieldStyle.fieldFontWeight, String hintText = "Select your birth date", Color hintTextColor = StandardFieldStyle.hintTextColor, double hintTextFontSize = StandardFieldStyle.hintTextFontSize, FontWeight hintTextFontWeight = StandardFieldStyle.hintTextFontWeight, Color? iconColor, double iconSize = StandardFieldStyle.iconSize, bool outlinedIcon = StandardFieldStyle.outlinedIcon, EdgeInsets insidePadding = StandardFieldStyle.insidePadding, EdgeInsets outsidePadding = StandardFieldStyle.outsidePadding, BorderRadius borderRadius = StandardFieldStyle.borderRadius, BoxBorder? borderStyle, DateTime? minDate, DateTime? maxDate})
const

Properties

borderRadius BorderRadius
final
borderStyle BoxBorder?
final
calendarBackgroundColor Color
final
calendarCircleColor Color
final
calendarFontColor Color
final
calendarFontColorOnCircle Color
final
fieldFontSize double
final
fieldFontWeight FontWeight
final
fieldName String
The label displayed above the field.
final
fieldNameColor Color?
final
fillColor Color
final
hashCode int
The hash code for this object.
no setterinherited
hintText String
Hint text displayed inside the field.
final
hintTextColor Color
final
hintTextFontSize double
final
hintTextFontWeight FontWeight
final
iconColor Color?
Icon shown as a prefix and suffix inside the field.
final
iconSize double
final
insidePadding EdgeInsets
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
maxDate DateTime?
final
minDate DateTime?
final
outlinedIcon bool
final
outsidePadding EdgeInsets
final
primaryColor Color
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
selectedDate → dynamic Function(int year, int month, int day)
final

Methods

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