VooDateTimePicker class

Material 3 date/time picker using VooCalendar

Inheritance

Constructors

VooDateTimePicker({Key? key, VooDateTimePickerMode mode = VooDateTimePickerMode.date, DateTime? initialDateTime, DateTimeRange<DateTime>? initialDateRange, DateTime? firstDate, DateTime? lastDate, void onDateTimeChanged(DateTime? dateTime)?, void onDateRangeChanged(DateTimeRange<DateTime>? range)?, bool isInline = false, InputDecoration? decoration, VooCalendarTheme? calendarTheme, int minuteInterval = 1, bool use24HourFormat = false, String? dateFormat, String? timeFormat, bool enabled = true, String? hintText, String? labelText, String? helperText, String? errorText, Widget? clearIcon, Widget? calendarIcon, Widget? clockIcon})
const

Properties

calendarIcon → Widget?
Calendar icon
final
calendarTheme → VooCalendarTheme?
Calendar theme
final
clearIcon → Widget?
Clear button icon
final
clockIcon → Widget?
Clock icon
final
dateFormat → String?
Custom date format
final
decoration → InputDecoration?
Field decoration
final
enabled → bool
Enable field
final
errorText → String?
Field error text
final
firstDate → DateTime?
First selectable date
final
hashCode → int
The hash code for this object.
no setterinherited
helperText → String?
Field helper text
final
hintText → String?
Field hint text
final
initialDateRange → DateTimeRange<DateTime>?
Initial date range
final
initialDateTime → DateTime?
Initial date/time
final
isInline → bool
Whether to show as a field with dropdown or inline
final
key → Key?
Controls how one widget replaces another widget in the tree.
finalinherited
labelText → String?
Field label text
final
lastDate → DateTime?
Last selectable date
final
minuteInterval → int
Time picker interval in minutes
final
mode → VooDateTimePickerMode
Mode of the picker
final
onDateRangeChanged → void Function(DateTimeRange<DateTime>? range)?
Value changed callback for date range
final
onDateTimeChanged → void Function(DateTime? dateTime)?
Value changed callback for single date/time
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
timeFormat → String?
Custom time format
final
use24HourFormat → bool
Use 24 hour format
final

Methods

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