FastTextField class

A FastFormField that contains either a TextFormField or a CupertinoTextFormFieldRow.

Inheritance
Annotations

Constructors

FastTextField({bool? adaptive = true, AutovalidateMode? autovalidateMode = AutovalidateMode.onUserInteraction, FormFieldBuilder<String> builder = textFieldBuilder, Map<FastConditionHandler, FastConditionList>? conditions, EdgeInsetsGeometry? contentPadding, InputDecoration? decoration, bool enabled = true, String? helperText, String? initialValue = '', Key? key, String? labelText, required String name, ValueChanged<String?>? onChanged, VoidCallback? onReset, FormFieldSetter<String>? onSaved, String? restorationId, FormFieldValidator<String>? validator, bool autocorrect = true, Iterable<String>? autofillHints, bool autofocus = false, bool autovalidateOnTouched = true, InputCounterWidgetBuilder? buildCounter, bool canRequestFocus = true, Clip clipBehavior = Clip.hardEdge, ContentInsertionConfiguration? contentInsertionConfiguration, EditableTextContextMenuBuilder? contextMenuBuilder, Color? cursorColor, double? cursorHeight, bool? cursorOpacityAnimates, Radius? cursorRadius, double cursorWidth = 2.0, DragStartBehavior dragStartBehavior = DragStartBehavior.start, bool enableIMEPersonalizedLearning = true, bool enableInteractiveSelection = true, bool enableSuggestions = true, bool expands = false, FocusNode? focusNode, List<TextInputFormatter>? inputFormatters, Brightness? keyboardAppearance, TextInputType? keyboardType, Widget? leading, TextMagnifierConfiguration? magnifierConfiguration, int? maxLength, MaxLengthEnforcement? maxLengthEnforcement, int? maxLines = 1, int? minLines, MouseCursor? mouseCursor, bool obscureText = false, String obscuringCharacter = '•', void onAppPrivateCommand(String, Map<String, dynamic>)?, VoidCallback? onEditingComplete, ValueChanged<String>? onFieldSubmitted, GestureTapCallback? onTap, void onTapOutside(PointerDownEvent)?, EdgeInsetsGeometry? padding, String? placeholder, TextStyle? placeholderStyle, Widget? prefix, bool readOnly = false, bool scribbleEnabled = true, ScrollController? scrollController, EdgeInsets scrollPadding = const EdgeInsets.all(20.0), ScrollPhysics? scrollPhysics, TextSelectionControls? selectionControls, BoxHeightStyle selectionHeightStyle = BoxHeightStyle.tight, BoxWidthStyle selectionWidthStyle = BoxWidthStyle.tight, bool? showCursor, SmartDashesType? smartDashesType, SmartQuotesType? smartQuotesType, SpellCheckConfiguration? spellCheckConfiguration, StrutStyle? strutStyle, TextStyle? style, Widget? suffix, TextAlign textAlign = TextAlign.start, TextAlignVertical? textAlignVertical, TextCapitalization textCapitalization = TextCapitalization.none, TextDirection? textDirection, TextInputAction? textInputAction, Widget? trailing, UndoHistoryController? undoController})
const

Properties

adaptive bool?
null represents a non-adaptive form field widget
finalinherited
autocorrect bool
final
autofillHints Iterable<String>?
final
autofocus bool
final
autovalidateMode AutovalidateMode
Used to enable/disable this form field auto validation and update its error text.
finalinherited
autovalidateOnTouched bool
Whether validation should take place when the field is marked as touched, even though the initialValue did not change.
final
buildCounter InputCounterWidgetBuilder?
final
builder FormFieldBuilder<String>
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
canRequestFocus bool
final
clipBehavior Clip
final
conditions Map<FastConditionHandler, FastConditionList>?
finalinherited
contentInsertionConfiguration ContentInsertionConfiguration?
final
contentPadding EdgeInsetsGeometry?
finalinherited
contextMenuBuilder EditableTextContextMenuBuilder?
final
cursorColor Color?
final
cursorHeight double?
final
cursorOpacityAnimates bool?
final
cursorRadius Radius?
final
cursorWidth double
final
decoration InputDecoration?
finalinherited
dragStartBehavior DragStartBehavior
final
enabled bool
Whether the form is able to receive user input.
finalinherited
enableIMEPersonalizedLearning bool
final
enableInteractiveSelection bool
final
enableSuggestions bool
final
expands bool
final
focusNode FocusNode?
final
hashCode int
The hash code for this object.
no setterinherited
helperText String?
finalinherited
initialValue String?
An optional value to initialize the form field to, or null otherwise.
finalinherited
inputFormatters List<TextInputFormatter>?
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
keyboardAppearance Brightness?
final
keyboardType TextInputType?
final
labelText String?
finalinherited
leading Widget?
final
magnifierConfiguration TextMagnifierConfiguration?
final
maxLength int?
final
maxLengthEnforcement MaxLengthEnforcement?
final
maxLines int?
final
minLines int?
final
mouseCursor MouseCursor?
final
name String
finalinherited
obscureText bool
final
obscuringCharacter String
final
onAppPrivateCommand → (void Function(String, Map<String, dynamic>)?)
final
onChanged ValueChanged<String?>?
finalinherited
onEditingComplete VoidCallback?
final
onFieldSubmitted ValueChanged<String>?
final
onReset VoidCallback?
finalinherited
onSaved FormFieldSetter<String>?
An optional method to call with the final value when the form is saved via FormState.save.
finalinherited
onTap GestureTapCallback?
final
onTapOutside → (void Function(PointerDownEvent)?)
final
padding EdgeInsetsGeometry?
final
placeholder String?
final
placeholderStyle TextStyle?
final
prefix Widget?
final
readOnly bool
final
restorationId String?
Restoration ID to save and restore the state of the form field.
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scribbleEnabled bool
final
scrollController ScrollController?
final
scrollPadding EdgeInsets
final
scrollPhysics ScrollPhysics?
final
selectionControls TextSelectionControls?
final
selectionHeightStyle BoxHeightStyle
final
selectionWidthStyle BoxWidthStyle
final
showCursor bool?
final
smartDashesType SmartDashesType?
final
smartQuotesType SmartQuotesType?
final
spellCheckConfiguration SpellCheckConfiguration?
final
strutStyle StrutStyle?
final
style TextStyle?
final
suffix Widget?
final
textAlign TextAlign
final
textAlignVertical TextAlignVertical?
final
textCapitalization TextCapitalization
final
textDirection TextDirection?
final
textInputAction TextInputAction?
final
trailing Widget?
final
undoController UndoHistoryController?
final
validator FormFieldValidator<String>?
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() FastTextFieldState
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