FitTextInput constructor
const
FitTextInput({
- Key? key,
- TextEditingController? controller,
- bool autofocus = false,
- TextInputAction? inputAction,
- int maxLength = _defaultMaxLength,
- required String label,
- bool markAsRequired = false,
- String hint = "",
- bool hideValue = false,
- Widget? suffix,
- FocusNode? focusNode,
- AutovalidateMode validationMode = AutovalidateMode.disabled,
- TextInputType keyboardType = TextInputType.text,
- TextCapitalization capitalization = TextCapitalization.none,
- List<
TextInputFormatter> ? formatters, - String? validation()?,
- dynamic onFieldSubmitted()?,
- dynamic onChange()?,
- EdgeInsets? margin,
- EdgeInsets? padding,
- int? maxLines = 1,
- int? minLines,
- bool expand = false,
- double? width,
- double? height,
- bool? readonly,
Creates a new FitTextInput.
Implementation
const FitTextInput({
super.key,
this.controller,
this.autofocus = false,
this.inputAction,
this.maxLength = _defaultMaxLength,
required this.label,
this.markAsRequired = false,
this.hint = "",
this.hideValue = false,
this.suffix,
this.focusNode,
this.validationMode = AutovalidateMode.disabled,
this.keyboardType = TextInputType.text,
this.capitalization = TextCapitalization.none,
this.formatters,
this.validation,
this.onFieldSubmitted,
this.onChange,
this.margin,
this.padding,
this.maxLines = 1,
this.minLines,
this.expand = false,
this.width,
this.height,
this.readonly,
});