OudsPasswordInputDecoration class

Configuration for decorating the OudsPasswordInput 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.

  • prefixIcon: A boolean indicating whether to display a lock icon at the start of the input field. When true, displays a lock icon.

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

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

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

  • constrainedMaxWidth: When true, the item width is constrained to a maximum value defined by the design system. When false, no specific width constraint is applied, allowing the component to size itself or follow external modifiers. Defaults to false.

Constructors

OudsPasswordInputDecoration({String? labelText, String? helperText, String? hintText, bool? prefixIcon, String? prefix, String? errorText, bool? loader, bool? outlined = false, bool constrainedMaxWidth = false})
const

Properties

constrainedMaxWidth bool
final
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
outlined bool?
final
prefix String?
final
prefixIcon bool?
final
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