InputDecorationStyles class
A utility class providing consistent and customizable InputDecoration
styles.
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
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.
inherited
Static Methods
-
filled(
{required String label, String? hintText, String? errorText, Widget? prefixIcon, Widget? suffixIcon, double? borderRadius, Color? fillColor}) → InputDecoration - Returns a filled background style with optional border radius and color.
-
outlined(
{required String label, String? hintText, String? errorText, Widget? prefixIcon, Widget? suffixIcon, double? borderRadius}) → InputDecoration - Returns an outlined input style with optional rounded border radius.
-
underlined(
{required String label, String? hintText, String? errorText, Widget? prefixIcon, Widget? suffixIcon}) → InputDecoration - Returns an underlined input style, useful for minimal form inputs.
Constants
- defaultFillColor → const Color
- The default fill color for filled input decorations.
- fieldPadding → const EdgeInsets
- Shared content padding across all input fields.