ProTextFormField class

Inheritance

Constructors

ProTextFormField({Key? key, int? index, double? width, TextEditingController? controller, Color? fontColor, double? fontSize, FontWeight? fontWeight, String? label, Color? labelFontColor, double? labelFontSize, FontWeight? labelFontWeight, Color? borderColor, Color? borderColorFocused, Color? borderColorError, double? borderWidth, double? borderRadius, double? paddingHorizontal, double? paddingVertical, bool? filled = true, Color? backgroundColor, bool? enableShadow, String? hint, Color? hintColor, double? hintFontSize, FontWeight? hintFontWeight, Color? errorFontColor, void onSaved(String?)?, double? errorFontSize, FontWeight? errorFontWeight, FormFieldValidator? validator, ValueChanged<String>? onChanged, ValueChanged<int?>? getIndex, Widget? prefix, Size? prefixSize, Widget? suffix, Size? suffixSize, String? initialValue, TextInputType keyboardType = TextInputType.text, bool enabled = true, int maxLines = 1, FocusNode? focusNode, VoidCallback? onTap, AutovalidateMode autovalidateMode = AutovalidateMode.onUserInteraction, TextInputAction? textInputAction, bool? readOnly, List<TextInputFormatter>? textInputFormatters, TextInputType? textInputType, bool? obsecureText})
ProTextFormField wrapped the TextFormField widget and now its more easier to use.
const

Properties

autovalidateMode → AutovalidateMode
final
backgroundColor → Color?
final
borderColor → Color?
final
borderColorError → Color?
final
borderColorFocused → Color?
final
borderRadius → double?
final
borderWidth → double?
final
controller → TextEditingController?
final
enabled → bool
final
enableShadow → bool?
final
errorFontColor → Color?
final
errorFontSize → double?
final
errorFontWeight → FontWeight?
final
filled → bool?
final
focusNode → FocusNode?
final
fontColor → Color?
final
fontSize → double?
final
fontWeight → FontWeight?
final
getIndex → ValueChanged<int?>?
Called when the user taps on the text input field and it returns the index value you passed in the widget.
final
hashCode → int
The hash code for this object.
no setterinherited
hint → String?
final
hintColor → Color?
final
hintFontSize → double?
final
hintFontWeight → FontWeight?
final
index → int?
final
initialValue → String?
final
key → Key?
Controls how one widget replaces another widget in the tree.
finalinherited
keyboardType → TextInputType
final
label → String?
final
labelFontColor → Color?
final
labelFontSize → double?
final
labelFontWeight → FontWeight?
final
maxLines → int
final
obsecureText → bool?
final
onChanged → ValueChanged<String>?
Use this parameter to listen on change/key press.
final
onSaved → void Function(String?)?
final
onTap → VoidCallback?
final
paddingHorizontal → double?
final
paddingVertical → double?
final
prefix → Widget?
final
prefixSize → Size?
final
readOnly → bool?
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
suffix → Widget?
final
suffixSize → Size?
final
textInputAction → TextInputAction?
final
textInputFormatters → List<TextInputFormatter>?
final
textInputType → TextInputType?
final
validator → FormFieldValidator?
final
width → double?
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, 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