AuthInput class

Styled input field for authentication forms.

Features dark gaming theme styling with subtle borders, focus glow effect, and optional password visibility toggle.

Inheritance

Constructors

AuthInput({Key? key, required String label, String? placeholder, String? hint, String? error, AuthInputType type = AuthInputType.text, String? value, void onInput(String)?, bool disabled = false, bool autofocus = false, String? name})
const

Properties

autofocus → bool
Auto-focus this input on mount
final
disabled → bool
Whether the input is disabled
final
error → String?
Error message (shows red border when set)
final
hashCode → int
The hash code for this object.
no setterinherited
hint → String?
Hint text displayed below the input
final
key → Key?
Controls how one component replaces another component in the tree.
finalinherited
labelText → String
Label displayed above the input
final
name → String?
Input name attribute for forms
final
onInput → void Function(String)?
Callback when input value changes
final
placeholder → String?
Placeholder text inside the input
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
type → AuthInputType
Type of input (text, email, password)
final
value → String?
Current value of the input
final

Methods

build(BuildContext context) → Component
Describes the part of the user interface represented by this component.
override
createElement() → Element
Creates a StatelessElement to manage this component's location in the tree.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
shouldRebuild(covariant Component newComponent) → bool
Implement this method to determine whether a rebuild can be skipped.
inherited
toString() → String
A string representation of this object.
inherited

Operators

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