AppTextField constructor
const
AppTextField({
- Key? key,
- String? labelText,
- String? hintText,
- String errorText = '',
- String? helpText,
- String? counterText = '',
- TextStyle? textStyle,
- Color? borderColor,
- Color? backgroundColor,
- int? minLines,
- int maxLines = 1,
- int? maxLength,
- bool obscureText = false,
- bool enable = true,
- bool autoFocus = false,
- dynamic onTap()?,
- TextInputType keyboardType = TextInputType.text,
- List<
TextInputFormatter> ? inputFormatters, - FocusNode? focusNode,
- TextEditingController? controller,
- ValueChanged<
String> ? onChangedText, - dynamic onChangedFocus(
- bool?
- ValueChanged<
String> ? onSubmit, - bool? isSearch,
- Widget? prefixIcon,
- bool readOnly = false,
- TextAlign textAlign = TextAlign.left,
- dynamic onEditingComplete()?,
- TextCapitalization textCapitalization = TextCapitalization.none,
- bool autocorrect = true,
- bool enableSuggestions = true,
- double? height,
- bool? isArea,
- dynamic searchTap()?,
- TextInputAction? textInputAction,
- Widget? suffixIcon,
Implementation
const AppTextField({
Key? key,
this.labelText,
this.hintText,
this.errorText = '',
this.helpText,
this.counterText = '',
this.textStyle,
this.borderColor,
this.backgroundColor,
this.minLines,
this.maxLines = 1,
this.maxLength,
this.obscureText = false,
this.enable = true,
this.autoFocus = false,
this.onTap,
this.keyboardType = TextInputType.text,
this.inputFormatters,
this.focusNode,
this.controller,
this.onChangedText,
this.onChangedFocus,
this.onSubmit,
this.isSearch,
this.prefixIcon,
this.readOnly = false,
this.textAlign = TextAlign.left,
this.onEditingComplete,
this.textCapitalization = TextCapitalization.none,
this.autocorrect = true,
this.enableSuggestions = true,
this.height,
this.isArea,
this.searchTap,
this.textInputAction,
this.suffixIcon,
}) : super(key: key);