SmartTextFormField class

Inheritance

Constructors

SmartTextFormField({Key? key, required FormType formType, TextEditingController? controller, ValueChanged<String>? onChanged, String? fieldName, Color? fieldNameColor, double fieldFontSize = StandardFieldStyle.fieldFontSize, FontWeight fieldFontWeight = StandardFieldStyle.fieldFontWeight, String? hintText, Color? hintTextColor, double hintTextFontSize = StandardFieldStyle.hintTextFontSize, FontWeight hintTextFontWeight = StandardFieldStyle.hintTextFontWeight, String? emptyFieldErrorMessage, String? invalidFormErrorMessage, String? validator(String?)?, TextEditingController? matchController, int? minLength, TextCapitalization? textCapitalization, bool enabled = true, bool readOnly = false, AutovalidateMode? autovalidateMode, TextInputAction? textInputAction, ValueChanged<String>? onFieldSubmitted, Color? iconColor, double iconSize = StandardFieldStyle.iconSize, IconData? prefixIcon, IconData? suffixIconData, bool? outlinedIcon, BorderRadius? borderRadius, BorderSide? enabledBorderSide, BorderSide? focusedBorderSide, BorderSide? errorBorderSide, BorderSide? focusedErrorBorderSide, BoxBorder? borderStyle, TextStyle? errorMessageStyle, EdgeInsets insidePadding = StandardFieldStyle.insidePadding, EdgeInsets? outsidePadding, Color? fillColor, Color? primaryColor})
const

Properties

autovalidateMode → AutovalidateMode?
final
borderRadius → BorderRadius?
final
borderStyle → BoxBorder?
final
controller → TextEditingController?
final
emptyFieldErrorMessage → String?
Override default validation messages.
final
enabled → bool
final
enabledBorderSide → BorderSide?
final
errorBorderSide → BorderSide?
final
errorMessageStyle → TextStyle?
final
fieldFontSize → double
final
fieldFontWeight → FontWeight
final
fieldName → String?
Override the default label for the selected formType.
final
fieldNameColor → Color?
final
fillColor → Color?
final
focusedBorderSide → BorderSide?
final
focusedErrorBorderSide → BorderSide?
final
formType → FormType
final
hashCode → int
The hash code for this object.
no setterinherited
hintText → String?
Override the default hint for the selected formType.
final
hintTextColor → Color?
final
hintTextFontSize → double
final
hintTextFontWeight → FontWeight
final
iconColor → Color?
final
iconSize → double
final
insidePadding → EdgeInsets
final
invalidFormErrorMessage → String?
final
key → Key?
Controls how one widget replaces another widget in the tree.
finalinherited
matchController → TextEditingController?
Required for FormType.confirmPassword.
final
minLength → int?
Minimum length for password fields. Defaults to 6.
final
onChanged → ValueChanged<String>?
final
onFieldSubmitted → ValueChanged<String>?
final
outlinedIcon → bool?
final
outsidePadding → EdgeInsets?
final
prefixIcon → IconData?
final
primaryColor → Color?
final
readOnly → bool
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
suffixIconData → IconData?
final
textCapitalization → TextCapitalization?
final
textInputAction → TextInputAction?
final
validator → String? Function(String?)?
Fully overrides built-in validation when provided.
final

Methods

createElement() → StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() → SmartTextFormFieldState
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