FxTextField constructor
const
FxTextField({
- Key? key,
- TextEditingController? controller,
- String? label,
- String? hint,
- String? errorText,
- Widget? prefixIcon,
- Widget? suffixIcon,
- bool obscureText = false,
- TextInputType? keyboardType,
- TextInputAction? textInputAction,
- ValueChanged<
String> ? onChanged, - ValueChanged<
String> ? onSubmitted, - FormFieldValidator<
String> ? validator, - bool enabled = true,
- bool autofocus = false,
- int maxLines = 1,
- int? maxLength,
- FocusNode? focusNode,
- String? initialValue,
- TextCapitalization textCapitalization = TextCapitalization.none,
Implementation
const FxTextField({
super.key,
this.controller,
this.label,
this.hint,
this.errorText,
this.prefixIcon,
this.suffixIcon,
this.obscureText = false,
this.keyboardType,
this.textInputAction,
this.onChanged,
this.onSubmitted,
this.validator,
this.enabled = true,
this.autofocus = false,
this.maxLines = 1,
this.maxLength,
this.focusNode,
this.initialValue,
this.textCapitalization = TextCapitalization.none,
});