AppTextField constructor

AppTextField({
  1. String? hint,
  2. double? hintSize,
  3. String label = "",
  4. String? title,
  5. TextInputType keyboardType = TextInputType.text,
  6. FormFieldValidator<String>? validator,
  7. dynamic onChanged(
    1. String
    )?,
  8. dynamic onSubmit(
    1. String
    )?,
  9. bool obscureText = false,
  10. TextEditingController? controller,
  11. bool readOnly = false,
  12. GestureTapCallback? onTap,
  13. Widget? icon,
  14. int? maxLength,
  15. String? initValue,
  16. bool enable = true,
  17. String? image,
  18. double? imageSize = 24,
  19. Widget? endSuffix,
  20. bool enableEdit = false,
  21. Widget? endIcon,
  22. String? suffix,
  23. GestureTapCallback? onSuffixTap,
  24. int maxLines = 1,
  25. bool showCounter = false,
  26. List<TextInputFormatter>? formatter,
  27. FocusNode? focusNode,
  28. Color? iconColor,
  29. Color fillColor = AppColors.transparent,
  30. Color? hintColor,
  31. Color? labelColor,
  32. double radius = _AppTextFieldTheme.small,
  33. bool enableInteractiveSelection = true,
  34. bool showBorder = true,
  35. double? height,
  36. TextAlign textAlign = TextAlign.start,
  37. TextDirection? textDirection,
  38. bool autofocus = false,
  39. Key? key,
})

Implementation

AppTextField({
  this.hint,
  this.hintSize,
  this.label = "",
  this.title,
  this.keyboardType = TextInputType.text,
  this.validator,
  this.onChanged,
  this.onSubmit,
  this.obscureText = false,
  this.controller,
  this.readOnly = false,
  this.onTap,
  this.icon,
  this.maxLength,
  this.initValue,
  this.enable = true,
  this.image,
  this.imageSize = 24,
  this.endSuffix,
  this.enableEdit = false,
  this.endIcon,
  this.suffix,
  this.onSuffixTap,
  this.maxLines = 1,
  this.showCounter = false,
  this.formatter,
  this.focusNode,
  this.iconColor,
  this.fillColor = AppColors.transparent,
  this.hintColor,
  this.labelColor,
  this.radius = _AppTextFieldTheme.small,
  this.enableInteractiveSelection = true,
  this.showBorder = true,
  this.height,
  this.textAlign = TextAlign.start,
  this.textDirection,
  this.autofocus = false,
  super.key,
});