CommonTextField constructor
const
CommonTextField({
- Key? key,
- String? label,
- String? hint,
- String? errorText,
- TextEditingController? controller,
- String? validator()?,
- void onChanged()?,
- void onSubmitted()?,
- TextInputType keyboardType = TextInputType.text,
- TextInputAction textInputAction = TextInputAction.next,
- bool obscureText = false,
- bool readOnly = false,
- bool enabled = true,
- int maxLines = 1,
- int? maxLength,
- Widget? prefixIcon,
- Widget? suffixIcon,
- List<
TextInputFormatter> ? inputFormatters, - FocusNode? focusNode,
- EdgeInsetsGeometry? contentPadding,
- bool autofocus = false,
- TextStyle? labelStyle,
- TextStyle? style,
- TextStyle? hintStyle,
- InputBorder? border,
- InputBorder? enabledBorder,
- InputBorder? focusedBorder,
- InputBorder? errorBorder,
- Color? fillColor,
- bool? filled,
Implementation
const CommonTextField({
super.key,
this.label,
this.hint,
this.errorText,
this.controller,
this.validator,
this.onChanged,
this.onSubmitted,
this.keyboardType = TextInputType.text,
this.textInputAction = TextInputAction.next,
this.obscureText = false,
this.readOnly = false,
this.enabled = true,
this.maxLines = 1,
this.maxLength,
this.prefixIcon,
this.suffixIcon,
this.inputFormatters,
this.focusNode,
this.contentPadding,
this.autofocus = false,
this.labelStyle,
this.style,
this.hintStyle,
this.border,
this.enabledBorder,
this.focusedBorder,
this.errorBorder,
this.fillColor,
this.filled,
});