AppTextInput constructor

const AppTextInput({
  1. Key? key,
  2. String? hintText,
  3. String? labelText,
  4. TextEditingController? textController,
  5. FocusNode? focusNode,
  6. VoidCallback? onTapSuffixIcon,
  7. GestureTapCallback? onTap,
  8. ValueChanged<String>? onChanged,
  9. ValueChanged<String>? onSubmitted,
  10. IconData? suffixIcon,
  11. bool obscureText = false,
  12. TextInputType? keyboardType,
  13. TextInputAction? textInputAction = TextInputAction.next,
  14. String? errorMsg,
  15. int? maxLines = 1,
  16. int? maxTexts,
  17. int? errorMaxLines,
  18. Color? bgColor,
  19. IconData? prefixIcon,
  20. VoidCallback? onTapPrefixIcon,
  21. FormFieldValidator<String>? validator,
  22. FormFieldSetter<String>? onSaved,
  23. VoidCallback? onFieldSubmitted,
  24. VoidCallback? onEditingComplete,
  25. FocusNode? nextFocus,
  26. double? hPadding,
  27. double? vPadding,
  28. double? borderRadius,
  29. bool? filled,
  30. Color? fillColor,
  31. bool? isUnderLine,
  32. InputBorder? border,
})

Implementation

const AppTextInput({
  super.key,
  this.hintText,
  this.labelText,
  this.textController,
  this.focusNode,
  this.onTapSuffixIcon,
  this.onTap,
  this.onChanged,
  this.onSubmitted,
  this.suffixIcon,
  this.obscureText = false,
  this.keyboardType,
  this.textInputAction = TextInputAction.next,
  this.errorMsg,
  this.maxLines = 1,
  this.maxTexts,
  this.errorMaxLines,
  this.bgColor,
  this.prefixIcon,
  this.onTapPrefixIcon,
  this.validator,
  this.onSaved,
  this.onFieldSubmitted,
  this.onEditingComplete,
  this.nextFocus,
  this.hPadding,
  this.vPadding,
  this.borderRadius,
  this.filled,
  this.fillColor,
  this.isUnderLine,
  this.border,
});