XTextFieldStyle class
A style configuration class used to customize the appearance
Constructors
- XTextFieldStyle({Color outlineColor = Colors.grey, Color focusedOutlineColor = Colors.blue, Color errorOutlineColor = Colors.red, double outlineWidth = 1.0, double focusedOutlineWidth = 1.5, double errorOutlineWidth = 1.5, double borderRadius = 6.0})
-
Creates a new XTextFieldStyle instance.
const
Properties
- borderRadius → double
-
Border radius for all outline shapes.
final
- errorOutlineColor → Color
-
Outline color when the field has an error.
final
- errorOutlineWidth → double
-
Border width in error state.
final
- focusedOutlineColor → Color
-
Outline color when the field is focused.
final
- focusedOutlineWidth → double
-
Border width in focused state.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- outlineColor → Color
-
Outline color when the field is in its default state.
final
- outlineWidth → double
-
Border width in default state.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
errorOutline(
) → OutlineInputBorder - Returns the error OutlineInputBorder.
-
focusedOutline(
) → OutlineInputBorder - Returns the focused OutlineInputBorder.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
outline(
[double? width]) → OutlineInputBorder - Returns a default OutlineInputBorder using the provided width.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited