FastTimePicker class
A FastFormField that shows a Material Design date picker via showTimePicker.
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- FormField<
TimeOfDay> - FastFormField<
TimeOfDay> - FastTimePicker
- Annotations
Constructors
-
FastTimePicker({AutovalidateMode? autovalidateMode = AutovalidateMode.onUserInteraction, FormFieldBuilder<
TimeOfDay> builder = timePickerBuilder, Map<FastConditionHandler, FastConditionList> ? conditions, EdgeInsetsGeometry? contentPadding, InputDecoration? decoration, bool enabled = true, String? helperText, TimeOfDay? initialValue, Key? key, String? labelText, required String name, ValueChanged<TimeOfDay?> ? onChanged, VoidCallback? onReset, FormFieldSetter<TimeOfDay> ? onSaved, String? restorationId, FormFieldValidator<TimeOfDay> ? validator, Offset? anchorPoint, Color? barrierColor, bool barrierDismissible = true, String? barrierLabel, String? cancelText, String? confirmText, TransitionBuilder? dialogBuilder, String? errorInvalidText, String? helpText, String? hourLabelText, Icon? icon, FastTimePickerIconButtonBuilder iconButtonBuilder = timePickerIconButtonBuilder, TimePickerEntryMode initialEntryMode = TimePickerEntryMode.dial, String? minuteLabelText, EntryModeChangeCallback? onEntryModeChanged, Orientation? orientation, RouteSettings? routeSettings, FastTimePickerTextBuilder textBuilder = timePickerTextBuilder, TextStyle? textStyle, }) -
const
Properties
- adaptive → bool?
-
null represents a non-adaptive form field widget
finalinherited
- anchorPoint → Offset?
-
final
- autovalidateMode → AutovalidateMode
-
Used to enable/disable this form field auto validation and update its
error text.
finalinherited
- barrierColor → Color?
-
final
- barrierDismissible → bool
-
final
- barrierLabel → String?
-
final
-
builder
→ FormFieldBuilder<
TimeOfDay> -
Function that returns the widget representing this form field. It is
passed the form field state as input, containing the current value and
validation state of this field.
finalinherited
- cancelText → String?
-
final
-
conditions
→ Map<
FastConditionHandler, FastConditionList> ? -
finalinherited
- confirmText → String?
-
final
- contentPadding → EdgeInsetsGeometry?
-
finalinherited
- decoration → InputDecoration?
-
finalinherited
- dialogBuilder → TransitionBuilder?
-
final
- enabled → bool
-
Whether the form is able to receive user input.
finalinherited
- errorInvalidText → String?
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- helperText → String?
-
finalinherited
- helpText → String?
-
final
- hourLabelText → String?
-
final
- icon → Icon?
-
final
- iconButtonBuilder → FastTimePickerIconButtonBuilder
-
final
- initialEntryMode → TimePickerEntryMode
-
final
- initialValue → TimeOfDay?
-
An optional value to initialize the form field to, or null otherwise.
finalinherited
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- labelText → String?
-
finalinherited
- minuteLabelText → String?
-
final
- name → String
-
finalinherited
-
onChanged
→ ValueChanged<
TimeOfDay?> ? -
finalinherited
- onEntryModeChanged → EntryModeChangeCallback?
-
final
- onReset → VoidCallback?
-
finalinherited
-
onSaved
→ FormFieldSetter<
TimeOfDay> ? -
An optional method to call with the final value when the form is saved via
FormState.save.
finalinherited
- orientation → Orientation?
-
final
- restorationId → String?
-
Restoration ID to save and restore the state of the form field.
finalinherited
- routeSettings → RouteSettings?
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- textBuilder → FastTimePickerTextBuilder
-
final
- textStyle → TextStyle?
-
final
-
final
-
validator
→ FormFieldValidator<
TimeOfDay> ? -
An optional method that validates an input. Returns an error string to
display if the input is invalid, or null otherwise.
finalinherited
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → FastTimePickerState -
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}) → 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