TextFieldTheme class
Theme data for customizing TextField appearance.
This class defines the visual properties that can be applied to TextField widgets, including border styling, fill state, padding, and border radius. These properties can be set at the theme level to provide consistent styling across the application.
- Inheritance
-
- Object
- ComponentThemeData
- TextFieldTheme
Constructors
- TextFieldTheme({Border? border, BorderRadiusGeometry? borderRadius, bool? filled, EdgeInsetsGeometry? padding})
-
Creates a TextFieldTheme.
const
Properties
- border → Border?
-
Border style for the text field.
final
- borderRadius → BorderRadiusGeometry?
-
Border radius for text field corners.
final
- filled → bool?
-
Whether the text field has a filled background.
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- padding → EdgeInsetsGeometry?
-
Padding inside the text field.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
copyWith(
{ValueGetter< Border?> ? border, ValueGetter<BorderRadiusGeometry?> ? borderRadius, ValueGetter<bool?> ? filled, ValueGetter<EdgeInsetsGeometry?> ? padding}) → TextFieldTheme - Creates a copy of this theme with the given fields replaced.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override