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, Color? fillColor, Color? insetShadowColor, Color? insetHighlightColor})
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
fillColor → Color?
Optional fill color for InputDecoration.filled.
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
insetHighlightColor → Color?
Light edge for inset neumorphic fields (bottom/right).
final
insetShadowColor → Color?
Dark edge for inset neumorphic fields (top/left).
final
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
usesInsetDecoration → bool
Whether this style uses an inset neumorphic border instead of outline.
no setter

Methods

errorOutline() → OutlineInputBorder
Returns the error OutlineInputBorder.
focusedOutline() → OutlineInputBorder
Returns the focused OutlineInputBorder.
insetBorder({required bool focused, bool hasError = false}) → Border
Inset border used by neumorphic text fields.
insetDecoration(InputDecoration base) → InputDecoration
Borderless input decoration for inset-wrapped fields.
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
wrapInsetField({required Widget child, required bool focused, bool hasError = false}) → Widget
Wraps a field with an inset neumorphic shell.

Operators

operator ==(Object other) → bool
The equality operator.
inherited