BlocXTextFieldOptions class

Wraps common TextField/TextFormField parameters. Defaults are a filled field with no underline and rounded corners.

Constructors

BlocXTextFieldOptions.new({InputDecoration? decoration, TextStyle? style, TextInputType? keyboardType, TextCapitalization textCapitalization = TextCapitalization.none, TextInputAction? textInputAction, TextAlign textAlign = TextAlign.start, int? maxLines = 1, int? minLines, bool autofocus = false, bool obscureText = false, String? labelText, TextStyle? labelStyle, String? hintText, TextStyle? hintStyle, String? helperText, TextStyle? helperStyle, String? errorText, TextStyle? errorStyle, Widget? prefixIcon, bool showClearButton = true, bool filled = true, Color? fillColor, BorderRadius? borderRadius, EdgeInsetsGeometry? contentPadding})
const

Properties

autofocus bool
final
borderRadius BorderRadius?
Border radius for the default outline (when decoration is null).
final
contentPadding EdgeInsetsGeometry?
Content padding for the default decoration (when decoration is null).
final
decoration InputDecoration?
final
errorStyle TextStyle?
final
errorText String?
final
fillColor Color?
Fill color for the default decoration (when decoration is null).
final
filled bool
Whether the field is filled (default: true).
final
hashCode int
The hash code for this object.
no setterinherited
helperStyle TextStyle?
final
helperText String?
final
hintStyle TextStyle?
final
hintText String?
final
keyboardType TextInputType?
final
labelStyle TextStyle?
final
labelText String?
final
maxLines int?
final
minLines int?
final
obscureText bool
final
prefixIcon Widget?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
showClearButton bool
Shows a clear (✕) suffix icon while there is text (ignored when obscureText is true).
final
style TextStyle?
final
textAlign TextAlign
final
textCapitalization TextCapitalization
final
textInputAction TextInputAction?
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