GFTextField class

Inheritance
Available extensions

Constructors

GFTextField({Key? key, TextEditingController? controller, String? fieldinitialValue, FocusNode? focusNode, InputDecoration? decoration, TextInputType? keyboardType = TextInputType.text, TextCapitalization textCapitalization = TextCapitalization.none, TextInputAction? textInputAction, TextStyle? style = const TextStyle(), StrutStyle? strutStyle = const StrutStyle(), TextDirection? textDirection = TextDirection.ltr, TextAlign? textAlign = TextAlign.start, TextAlignVertical? textAlignVertical = TextAlignVertical.center, bool autofocus = false, bool? readOnly = false, bool? showCursor, String obscuringCharacter = '.', bool obscureText = false, bool autocorrect = true, SmartDashesType? smartDashesType, SmartQuotesType? smartQuotesType, bool enableSuggestions = true, bool? autovalidate = true, MaxLengthEnforcement maxLengthEnforced = MaxLengthEnforcement.none, int? maxLines = 1, int? minLines = 1, bool expands = false, int? maxLength, ValueChanged<String>? onChanged, GestureTapCallback? onTap, VoidCallback? onEditingComplete, ValueChanged<String>? onFieldSubmitted, FormFieldSetter<String>? onfieldSaved, FormFieldValidator<String>? validatornew, List<TextInputFormatter>? inputFormatters, bool fieldEnabled = true, double? cursorWidth = 2.0, double? cursorHeight, Radius? cursorRadius, Color? cursorColor, Color? color, Radius? borderradius, Brightness? keyboardAppearance, EdgeInsets scrollPadding = const EdgeInsets.all(20), bool enableInteractiveSelection = true, InputCounterWidgetBuilder? buildCounter, ScrollPhysics? scrollPhysics, Iterable<String>? autofillHints, AutovalidateMode autoValidateMode = AutovalidateMode.disabled})

Properties

autocorrect → bool
final
autofillHints → Iterable<String>?
final
autofocus → bool
final
autovalidate → bool?
final
autoValidateMode → AutovalidateMode
final
autovalidateMode → AutovalidateMode
Used to enable/disable this form field auto validation and update its error text.
finalinherited
borderradius → Radius?
final
buildCounter → InputCounterWidgetBuilder?
final
builder → FormFieldBuilder<String>
Function that returns the widget representing this form field.
finalinherited
color → Color?
final
controller → TextEditingController?
final
cursorColor → Color?
final
cursorHeight → double?
final
cursorRadius → Radius?
final
cursorWidth → double?
final
decoration → InputDecoration?
final
enabled → bool
Whether the form is able to receive user input.
finalinherited
enableInteractiveSelection → bool
final
enableSuggestions → bool
final
errorBuilder → FormFieldErrorBuilder?
Function that returns the widget representing the error to display.
finalinherited
expands → bool
final
fieldEnabled → bool
final
fieldinitialValue → String?
final
focusNode → FocusNode?
final
forceErrorText → String?
An optional property that forces the FormFieldState into an error state by directly setting the FormFieldState.errorText property without running the validator function.
finalinherited
hashCode → int
The hash code for this object.
no setterinherited
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
marginZero → Widget

Available on Widget, provided by the WidgetMarginX extension

no setter
maxLength → int?
final
maxLengthEnforced → MaxLengthEnforcement
final
maxLines → int?
final
minLines → int?
final
obscureText → bool
final
obscuringCharacter → String
final
onChanged → ValueChanged<String>?
final
onEditingComplete → VoidCallback?
final
onfieldSaved → FormFieldSetter<String>?
final
onFieldSubmitted → ValueChanged<String>?
final
onReset → VoidCallback?
An optional method to call when the form field is reset via FormFieldState.reset.
finalinherited
onSaved → FormFieldSetter<String>?
An optional method to call with the final value when the form is saved via FormState.save.
finalinherited
onTap → VoidCallback?
final
paddingZero → Widget

Available on Widget, provided by the WidgetPaddingX extension

no setter
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
scrollPadding → EdgeInsets
final
scrollPhysics → ScrollPhysics?
final
showCursor → bool?
final
sliverBox → Widget

Available on Widget, provided by the WidgetSliverBoxX extension

no setter
smartDashesType → SmartDashesType?
final
smartQuotesType → SmartQuotesType?
final
strutStyle → StrutStyle?
final
style → TextStyle?
final
textAlign → TextAlign?
final
textAlignVertical → TextAlignVertical?
final
textCapitalization → TextCapitalization
final
textDirection → TextDirection?
final
textInputAction → TextInputAction?
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
validatornew → FormFieldValidator<String>?
final

Methods

createElement() → StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() → FormFieldState<String>
Creates the mutable state for this widget at a given 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
marginAll(double margin) → Widget

Available on Widget, provided by the WidgetMarginX extension

marginOnly({double left = 0.0, double top = 0.0, double right = 0.0, double bottom = 0.0}) → Widget

Available on Widget, provided by the WidgetMarginX extension

marginSymmetric({double horizontal = 0.0, double vertical = 0.0}) → Widget

Available on Widget, provided by the WidgetMarginX extension

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
paddingAll(double padding) → Widget

Available on Widget, provided by the WidgetPaddingX extension

paddingOnly({double left = 0.0, double top = 0.0, double right = 0.0, double bottom = 0.0}) → Widget

Available on Widget, provided by the WidgetPaddingX extension

paddingSymmetric({double horizontal = 0.0, double vertical = 0.0}) → Widget

Available on Widget, provided by the WidgetPaddingX extension

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