DateTextField class

Inheritance

Constructors

DateTextField({Key key, ValueNotifier<DateTime> controller, FocusNode focusNode, InputDecoration decoration: const InputDecoration(), TextInputType keyboardType, TextInputAction textInputAction, TextCapitalization textCapitalization: TextCapitalization.none, TextStyle style, TextAlign textAlign: TextAlign.start, TextDirection textDirection, bool autofocus: false, bool obscureText: false, bool autocorrect: true, int maxLines: 1, int maxLength, bool maxLengthEnforced: true, ValueChanged<String> onChanged, VoidCallback onEditingComplete, ValueChanged<String> onSubmitted, List<TextInputFormatter> inputFormatters, bool enabled, double cursorWidth: 2.0, Radius cursorRadius, Color cursorColor, Brightness keyboardAppearance, EdgeInsets scrollPadding: const EdgeInsets.all(20.0), bool enableInteractiveSelection: true, GestureTapCallback onTap, VoidCallback clearButtonAction, Color clearButtonColor, IconData clearButtonIcon, DateTimePickerMode dateTimePickerMode, String dateFormat, DateTime defaultDate, OnDateTimeSelected onDateTimeSelected})

Properties

autocorrect ↔ bool
read / write
autofocus ↔ bool
read / write
clearButtonAction VoidCallback
read / write
clearButtonColor Color
read / write
clearButtonIcon IconData
read / write
controller ValueNotifier<DateTime>
read / write
cursorColor Color
read / write
cursorRadius Radius
read / write
cursorWidth ↔ double
read / write
dateFormat ↔ String
read / write
dateTimePickerMode DateTimePickerMode
read / write
decoration InputDecoration
read / write
defaultDate ↔ DateTime
read / write
enabled ↔ bool
read / write
enableInteractiveSelection ↔ bool
read / write
focusNode FocusNode
read / write
inputFormatters ↔ List<TextInputFormatter>
read / write
key Key
Controls how one widget replaces another widget in the tree. [...]
read / write, override-getter
keyboardAppearance Brightness
read / write
keyboardType TextInputType
read / write
maxLength ↔ int
read / write
maxLengthEnforced ↔ bool
read / write
maxLines ↔ int
read / write
obscureText ↔ bool
read / write
onChanged ValueChanged<String>
read / write
onDateTimeSelected OnDateTimeSelected
read / write
onEditingComplete VoidCallback
read / write
onSubmitted ValueChanged<String>
read / write
onTap GestureTapCallback
read / write
scrollPadding EdgeInsets
read / write
style TextStyle
read / write
textAlign TextAlign
read / write
textCapitalization TextCapitalization
read / write
textController TextEditingController
read / write
textDirection TextDirection
read / write
textInputAction TextInputAction
read / write
hashCode → int
The hash code for this object.
read-only, inherited
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited

Methods

createState() → _DateTextFieldState
Creates the mutable state for this widget at a given location in the tree. [...]
override
createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
debugDescribeChildren() → List<DiagnosticsNode>
Returns a list of DiagnosticsNode objects describing this node's children.
@protected, inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent 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.debug}) → String
Returns 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 ==(dynamic other) → bool
The equality operator.
inherited

Constants

DATE_FORMAT → const String
'EEE, d MMM yyyy hh:mm a'