OudsInputDecoration class

Configuration for decorating the OudsTextInput widget.

Provides properties to customize labels, hints, icons, helper and error texts, loading states, and styling.

Parameters:

  • labelText: The main label text displayed above or inside the input field.

  • helperText: Additional information displayed below the input, often used to guide or assist the user.

  • hintText: A short placeholder or hint shown inside the input when empty, describing the expected input.

  • suffixIcon: A widget displayed at the end of the input field, commonly used for actions like clearing or toggling visibility.

  • prefixIcon: The name or path of an icon displayed at the start of the input field, typically to indicate the type or purpose of input.

  • prefix: A string displayed before the user's input, usually static text or units.

  • suffix: A string displayed after the user's input, often used for units or context.

  • errorText: Text shown below the input indicating an error state or invalid input.

  • loader: When true, displays a loading indicator inside the input.

  • style: The visual style of the input, e.g., default or alternative styles.

Constructors

OudsInputDecoration.new({String? labelText, String? helperText, String? hintText, String? suffixIcon, String? prefixIcon, String? prefix, String? suffix, String? errorText, bool? loader, OudsTextInputStyle? style = OudsTextInputStyle.defaultStyle})
const

Properties

errorText String?
final
hashCode int
The hash code for this object.
no setterinherited
helperText String?
final
hintText String?
final
labelText String?
final
loader bool?
final
prefix String?
final
prefixIcon String?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
style OudsTextInputStyle?
final
suffix String?
final
suffixIcon String?
final

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