FormItemTextField constructor
const
FormItemTextField({
- TextEditingController? controller,
- TextInputType keyboardType = TextInputType.text,
- int? maxLength,
- VoidCallback? onTap,
- int? minLength,
- EdgeInsetsGeometry? contentPadding,
- int? maxLines,
- int minLines = 1,
- InputBorder? border,
- InputBorder? disabledBorder,
- Color? backgroundColor,
- bool expands = false,
- String? hintText,
- String? labelText,
- String? lengthErrorText = "",
- Widget? prefix,
- Widget? suffix,
- String? prefixText,
- String? suffixText,
- Widget? prefixIcon,
- BoxConstraints? prefixIconConstraints,
- Widget? suffixIcon,
- BoxConstraints? suffixIconConstraints,
- bool dense = false,
- EdgeInsetsGeometry? padding,
- List<
String> suggestion = const [], - bool allowEmpty = false,
- bool enabled = true,
- bool readOnly = false,
- bool obscureText = false,
- String? counterText = "",
- void onDeleteSuggestion(
- String value
- String? validator(
- String? value
- List<
TextInputFormatter> ? inputFormatters, - void onSaved(
- String? value
- void onSubmitted(
- String? value
- void onChanged(
- String? value
- bool? showCursor,
- FocusNode? focusNode,
- Color? color,
- double? fontSize,
- Color? subColor,
- double? height,
- String? errorText,
- TextAlign textAlign = TextAlign.start,
- TextAlignVertical? textAlignVertical,
Implementation
const FormItemTextField({
this.controller,
this.keyboardType = TextInputType.text,
this.maxLength,
this.onTap,
this.minLength,
this.contentPadding,
this.maxLines,
this.minLines = 1,
this.border,
this.disabledBorder,
this.backgroundColor,
this.expands = false,
this.hintText,
this.labelText,
this.lengthErrorText = "",
this.prefix,
this.suffix,
this.prefixText,
this.suffixText,
this.prefixIcon,
this.prefixIconConstraints,
this.suffixIcon,
this.suffixIconConstraints,
this.dense = false,
this.padding,
this.suggestion = const [],
this.allowEmpty = false,
this.enabled = true,
this.readOnly = false,
this.obscureText = false,
this.counterText = "",
this.onDeleteSuggestion,
this.validator,
this.inputFormatters,
this.onSaved,
this.onSubmitted,
this.onChanged,
this.showCursor,
this.focusNode,
this.color,
this.fontSize,
this.subColor,
this.height,
this.errorText,
this.textAlign = TextAlign.start,
this.textAlignVertical,
});