BlocXTextFieldOptions class

Configuration options for BlocXFormTextField.

These options control both visual styling and input behaviour.

Constructors

BlocXTextFieldOptions({InputDecoration? decoration, TextStyle? style, TextInputType? keyboardType, TextDirection? textDirection, TextCapitalization textCapitalization = TextCapitalization.none, TextInputAction? textInputAction, TextAlign textAlign = TextAlign.start, int? maxLines = 1, int? minLines, int? maxLength, List<TextInputFormatter> inputFormatters = const [], int? minLength, bool autofocus = false, bool obscureText = false, String? labelText, TextStyle? labelStyle, String? hintText, TextStyle? hintStyle, String? helperText, TextStyle? helperStyle, String? errorText, TextStyle? errorStyle, Widget? prefix, Widget? suffix, bool showClearButton = true, bool filled = true, Color? fillColor, BorderRadius? borderRadius, EdgeInsetsGeometry? contentPadding, bool enabled = true})
Creates text field configuration options.
const

Properties

autofocus bool
Whether the field requests focus on first build.
final
borderRadius BorderRadius?
Border radius for the default outlined and filled decorations.
final
contentPadding EdgeInsetsGeometry?
Content padding inside the field.
final
decoration InputDecoration?
Optional base InputDecoration.
final
enabled bool
Whether the field is interactive.
final
errorStyle TextStyle?
Style for the error text.
final
errorText String?
Static error text.
final
fillColor Color?
Fill colour for the field background.
final
filled bool
Whether the filled text field variant uses a filled background.
final
hashCode int
The hash code for this object.
no setterinherited
helperStyle TextStyle?
Style for helperText.
final
helperText String?
Helper text displayed below the field.
final
hintStyle TextStyle?
Style for hintText.
final
hintText String?
Hint text displayed when the field is empty.
final
inputFormatters List<TextInputFormatter>
Input formatters applied before the value reaches the bloc.
final
keyboardType TextInputType?
Keyboard type hint.
final
labelStyle TextStyle?
Style for labelText.
final
labelText String?
Label text displayed as a floating label.
final
maxLength int?
Maximum character count.
final
maxLines int?
Maximum number of lines.
final
minLength int?
Minimum character count.
final
minLines int?
Minimum number of lines.
final
obscureText bool
Whether to obscure input.
final
prefix Widget?
Widget placed at the start of the field.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
showClearButton bool
Whether to show a clear button when the field has text.
final
style TextStyle?
Text style for the input value.
final
suffix Widget?
Widget placed at the end of the field.
final
textAlign TextAlign
Horizontal alignment of the input text.
final
textCapitalization TextCapitalization
Text capitalisation mode.
final
textDirection TextDirection?
Explicit text direction.
final
textInputAction TextInputAction?
Action button on the keyboard.
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