BlocXTextFieldOptions constructor
const
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.
Implementation
const BlocXTextFieldOptions({
this.decoration,
this.style,
this.keyboardType,
this.textDirection,
this.textCapitalization = TextCapitalization.none,
this.textInputAction,
this.textAlign = TextAlign.start,
this.maxLines = 1,
this.minLines,
this.maxLength,
this.inputFormatters = const [],
this.minLength,
this.autofocus = false,
this.obscureText = false,
this.labelText,
this.labelStyle,
this.hintText,
this.hintStyle,
this.helperText,
this.helperStyle,
this.errorText,
this.errorStyle,
this.prefix,
this.suffix,
this.showClearButton = true,
this.filled = true,
this.fillColor,
this.borderRadius,
this.contentPadding,
this.enabled = true,
});