GetTextField class

A wrapper of TextFormField with extended capabilities

Inheritance
Available Extensions

Constructors

GetTextField({String? initialText, String? controlledText, TextEditingController? controller, AutovalidateMode? autovalidateMode, TextInputType? keyboardType, List<TextInputFormatter>? inputFormatters, TextInputAction? textInputAction, FocusNode? focusNode, VoidCallback? onTap, OnString? onSubmitted, OnString? onSaved, OnString? onChanged, OnStringCallback<String?>? validator, bool autoControlled = true, bool? readOnly, bool tapOnly = true, bool? validateLength, bool validateEmpty = true, bool? showCounter, bool? dense, bool? filled, bool? obscureText, bool? enableSuggestions, int? maxLength, int? minLines, int maxLines = 1, EdgeInsets? margin, EdgeInsets? padding, Color? background, TextCapitalization textCapitalization = TextCapitalization.none, TextStyle? style, TextAlign textAlign = TextAlign.start, TextAlignVertical? textAlignVertical, bool autofocus = false, bool expands = false, ToolbarOptions? toolbarOptions, bool? showCursor, String obscuringCharacter = "•", SmartDashesType? smartDashesType, SmartQuotesType? smartQuotesType, MaxLengthEnforcement? maxLengthEnforcement, VoidCallback? onEditingComplete, bool enabled = true, double cursorWidth = 2.0, double? cursorHeight, Radius? cursorRadius, Color? cursorColor, Brightness? keyboardBrightness, EdgeInsets scrollPadding = const EdgeInsets.all(20.0), bool enableInteractiveSelection = true, TextSelectionControls? selectionControls, InputCounterWidgetBuilder? buildCounter, ScrollPhysics? scrollPhysics, Iterable<String>? autofillHints, String? label, String? hint, String? error, String? helper, Widget? hintIcon, Widget? prefix, Widget? suffix, Widget? icon, TextStyle? labelStyle, TextStyle? helperStyle, int? helperMaxLines, TextStyle? hintStyle, int? hintMaxLines, TextStyle? errorStyle, int? errorMaxLines, FloatingLabelBehavior floatingLabelBehavior = FloatingLabelBehavior.auto, bool collapsed = false, EdgeInsetsGeometry? contentPadding, Widget? prefixIcon, BoxConstraints? prefixIconConstraints, String? prefixText, TextStyle? prefixStyle, Widget? suffixIcon, String? suffixText, TextStyle? suffixStyle, BoxConstraints? suffixIconConstraints, Widget? counter, String? counterText, TextStyle? counterStyle, Color? fillColor, Color? focusColor, Color? hoverColor, InputBorder? errorBorder, InputBorder? focusedBorder, InputBorder? focusedErrorBorder, InputBorder? disabledBorder, InputBorder? enabledBorder, InputBorder? border, String? semanticCounterText, bool? alignLabelWithHint, Key? key})
const

Properties

alignLabelWithHint bool?
final
autoControlled bool
final
autofillHints Iterable<String>?
final
autofocus bool
final
autovalidateMode AutovalidateMode?
final
background Color?
final
border InputBorder?
final
buildCounter InputCounterWidgetBuilder?
final
collapsed bool
final
contentPadding EdgeInsetsGeometry?
final
controlledText String?
Controlled by implicit controller and only effective if initialText and controller are not provided.
final
controller TextEditingController?
To make it effective, don't provide initialText.
final
counter Widget?
final
counterStyle TextStyle?
final
counterText String?
final
cursorColor Color?
final
cursorHeight double?
final
cursorRadius Radius?
final
cursorWidth double
final
dense bool?
final
disabledBorder InputBorder?
final
enabled bool
final
enabledBorder InputBorder?
final
enableInteractiveSelection bool
final
enableSuggestions bool?
final
error String?
final
errorBorder InputBorder?
final
errorMaxLines int?
final
errorStyle TextStyle?
final
expands bool
final
fillColor Color?
final
filled bool?
final
floatingLabelBehavior FloatingLabelBehavior
final
focusColor Color?
final
focusedBorder InputBorder?
final
focusedErrorBorder InputBorder?
final
focusNode FocusNode?
final
hashCode int
The hash code for this object.
no setterinherited
helper String?
final
helperMaxLines int?
final
helperStyle TextStyle?
final
hint String?
final
hintIcon Widget?
final
hintMaxLines int?
final
hintStyle TextStyle?
final
hoverColor Color?
final
icon Widget?
final
initialText String?
If provided, it disables any explicit controller.
final
inputFormatters List<TextInputFormatter>?
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
keyboardBrightness Brightness?
final
keyboardType TextInputType?
final
label String?
final
labelStyle TextStyle?
final
margin EdgeInsets?
final
maxLength int?
final
maxLengthEnforcement MaxLengthEnforcement?
final
maxLines int
final
minLines int?
final
obscureText bool?
final
obscuringCharacter String
final
onChanged OnString?
final
onEditingComplete VoidCallback?
final
onSaved OnString?
final
onSubmitted OnString?
final
onTap VoidCallback?
final
padding EdgeInsets?
final
prefix Widget?
final
prefixIcon Widget?
final
prefixIconConstraints BoxConstraints?
final
prefixStyle TextStyle?
final
prefixText String?
final
readOnly bool?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scrollPadding EdgeInsets
final
scrollPhysics ScrollPhysics?
final
selectionControls TextSelectionControls?
final
semanticCounterText String?
final
showCounter bool?
final
showCursor bool?
final
smartDashesType SmartDashesType?
final
smartQuotesType SmartQuotesType?
final
style TextStyle?
final
suffix Widget?
final
suffixIcon Widget?
final
suffixIconConstraints BoxConstraints?
final
suffixStyle TextStyle?
final
suffixText String?
final
tapOnly bool
final
textAlign TextAlign
final
textAlignVertical TextAlignVertical?
final
textCapitalization TextCapitalization
final
textInputAction TextInputAction?
final
toolbarOptions ToolbarOptions?
final
validateEmpty bool
final
validateLength bool?
final
validator OnStringCallback<String?>?
final

Methods

build(BuildContext context) Widget
Describes the part of the user interface represented by this widget.
override
createElement() StatelessElement
Creates a StatelessElement to manage this widget's location in the tree.
inherited
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

Static Properties

newKey GlobalKey<FormFieldState>
no setter