TextFormFieldWrapper class

Inheritance

Constructors

TextFormFieldWrapper({Key? key, required FormField formField, TextFormFieldPosition position = TextFormFieldPosition.alone, Widget? suffix, Widget? prefix, Color? shadowColor, double shadowSize = 0.5, double borderRadius = 12.0, double borderThickness = 1.0, Color? borderColor, double borderFocusedThickness = 3.0, Color? borderFocusedColor, bool isEnabled = true})
The TextFormFieldWrapper widget is used to decorate the standard flutter form field widget with a border and corner radiuses that react to a specified position.
const

Properties

borderColor Color?
The color of the border while not in focus.
final
borderFocusedColor Color?
Color of the border while the widget is in focus.
final
borderFocusedThickness double
The thickness of the border while the widget is in focus.
final
borderRadius double
The radius of the corners.
final
borderThickness double
The thickness of the border while not in focus.
final
formField FormField
The form field that this widget is to wrap. Make sure to set the inputDecoration of the to have a Border of 'none'
final
hashCode int
The hash code for this object.
no setterinherited
isEnabled bool
is this form field enabled? The fill color can be different if disabled.
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
position TextFormFieldPosition
The position of the wrapper widget in respects to others. The position will affect which corners of the border a radiiused.
final
prefix Widget?
The widget to the 'left' of the form field. If you are trying to keep multiple form fields in alignment, consider inserting a 'SizedBox' widget or another widget type that allows a width constraint.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
shadowColor Color?
The color of the shadow
final
shadowSize double
The radius / size of the shadow.
final
suffix Widget?
The widget to the 'right' of the form field. If you are trying to keep multiple form fields in alignment, consider inserting a 'SizedBox' widget or another widget type that allows a width constraint.
final

Methods

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