TextFormFieldWrapper class
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