ZeroDatePickerDocked class
A TextFormField displaying a grid of days for a given month and allows the user to select a in docked mode
Days are arranged in a rectangular grid with one column for each day of the week. Controls are provided to change the year and month that the grid is showing.
The docked would displayed every time the TextFormField has focus. And it will be dismissed every time the user tap OK or Cancel button, or tapping on the TextFormField when the docked is open.
See also:
- showZeroDatePicker, which creates a Dialog that contains a ZeroDockedCalendarDatePicker and provides an optional compact view where the user can enter a date as a line of text.
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- ZeroDatePickerDocked
Constructors
-
ZeroDatePickerDocked.new({Key? key, InputDecorationType inputDecorationType = InputDecorationType.outline, required DateTime initialDate, required DateTime firstDate, required DateTime lastDate, required ValueChanged<
DateTime> onDateChanged, String? labelText, String? hintText, String? helperText, String? errorText, String? cancelText, String? confirmText, Icon? suffixIcon, ZeroDatePickerStyle? style}) -
const
Properties
- cancelText → String?
-
A cancel text after user selects the date.
It defaults to
localizations.cancelButtonLabel
if not set.final - confirmText → String?
-
A confirm text after user selects the date.
It defaults to
localizations.okButtonLabel
if not setfinal - errorText → String?
-
final
- firstDate → DateTime
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- helperText → String?
-
final
- hintText → String?
-
final
- initialDate → DateTime
-
final
- inputDecorationType → InputDecorationType
-
Values:
inputDecorationType.outline
,inputDecorationType.underline
, andinputDecorationType.fill
This affects how the widget renders OutlineInputBorder in terms of fill color, border colors, and fill colorfinal - key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- labelText → String?
-
final
- lastDate → DateTime
-
final
-
onDateChanged
→ ValueChanged<
DateTime> -
Called when the user selects a date in the picker.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- style → ZeroDatePickerStyle?
-
Defines the visual properties of the widget displayed with showZeroDatePicker.
final
- suffixIcon → Icon?
-
Suffix icon on the TextFormField. It defaults to Icons.calendar_month if not set
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → State< ZeroDatePickerDocked> -
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