AppTextField constructor

const AppTextField({
  1. Key? key,
  2. String? labelText,
  3. String? hintText,
  4. String errorText = '',
  5. String? helpText,
  6. String? counterText = '',
  7. TextStyle? textStyle,
  8. Color? borderColor,
  9. Color? backgroundColor,
  10. int? minLines,
  11. int maxLines = 1,
  12. int? maxLength,
  13. bool obscureText = false,
  14. bool enable = true,
  15. bool autoFocus = false,
  16. dynamic onTap()?,
  17. TextInputType keyboardType = TextInputType.text,
  18. List<TextInputFormatter>? inputFormatters,
  19. FocusNode? focusNode,
  20. TextEditingController? controller,
  21. ValueChanged<String>? onChangedText,
  22. dynamic onChangedFocus(
    1. bool?
    )?,
  23. ValueChanged<String>? onSubmit,
  24. bool? isSearch,
  25. Widget? prefixIcon,
  26. bool readOnly = false,
  27. TextAlign textAlign = TextAlign.left,
  28. dynamic onEditingComplete()?,
  29. TextCapitalization textCapitalization = TextCapitalization.none,
  30. bool autocorrect = true,
  31. bool enableSuggestions = true,
  32. double? height,
  33. bool? isArea,
  34. dynamic searchTap()?,
  35. TextInputAction? textInputAction,
  36. 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);