FxFieldOptions constructor
const
FxFieldOptions({
- String? label,
- String? hint,
- String? helperText,
- String? errorText,
- Widget? prefix,
- Widget? prefixIcon,
- Widget? suffix,
- Widget? suffixIcon,
- TextCapitalization textCapitalization = TextCapitalization.none,
- int maxLines = 1,
- int? maxLength,
- FocusNode? focusNode,
- bool autofocus = false,
- bool autocorrect = false,
- bool enableSuggestions = false,
- bool readOnly = false,
- bool showCursor = false,
- bool showErrorText = false,
- TextInputType keyboardType = TextInputType.text,
- TextInputAction textInputAction = TextInputAction.next,
- bool obscureText = false,
- bool enabled = true,
- FxLabelBehavior labelBehavior = FxLabelBehavior.auto,
Implementation
const FxFieldOptions({
this.label,
this.hint,
this.helperText,
this.errorText,
this.prefix,
this.prefixIcon,
this.suffix,
this.suffixIcon,
this.textCapitalization = TextCapitalization.none,
this.maxLines = 1,
this.maxLength,
this.focusNode,
this.autofocus = false,
this.autocorrect = false,
this.enableSuggestions = false,
this.readOnly = false,
this.showCursor = false,
this.showErrorText = false,
this.keyboardType = TextInputType.text,
this.textInputAction = TextInputAction.next,
this.obscureText = false,
this.enabled = true,
this.labelBehavior = FxLabelBehavior.auto,
});