SmartDateFieldPicker class

A customizable text field widget that allows users to pick a date from a dropdown-style overlay.

Inheritance

Constructors

SmartDateFieldPicker({Key? key, DateTime? lastDate, FocusNode? focusNode, String? validator(String?)?, DateTime? firstDate, bool? fieldReadOnly, bool enabled = true, Offset? dropdownOffset, bool readOnly = false, AutovalidateMode? autoValidateMode, PickerDecoration? pickerDecoration, required OverlayPortalController controller, InputDecoration? decoration, required DateTime? initialDate, required void onDateSelected(DateTime? value)})
const

Properties

autoValidateMode AutovalidateMode?
When the validator function should be called.
final
controller OverlayPortalController
Controls the display of the dropdown overlay.
final
decoration InputDecoration?
Decoration for the input field.
final
Optional offset to position the dropdown.
final
enabled bool
Whether the field is enabled for user interaction.
final
fieldReadOnly bool?
Makes the field read-only (prevents typing if true).
final
firstDate DateTime?
The earliest date the user can select.
final
focusNode FocusNode?
Focus node for managing field focus.
final
hashCode int
The hash code for this object.
no setterinherited
initialDate DateTime?
The initially selected date.
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
lastDate DateTime?
The latest date the user can select.
final
onDateSelected → void Function(DateTime? value)
Callback triggered when a date is selected.
final
pickerDecoration PickerDecoration?
Appearance and behavior customization options for the picker.
final
readOnly bool
Whether the field is completely read-only (prevents both typing and dropdown).
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
validator String? Function(String?)?
Optional validator function for input validation.
final

Methods

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