AppTextInput constructor
const
AppTextInput({
- Key? key,
- String? hintText,
- String? labelText,
- TextEditingController? textController,
- FocusNode? focusNode,
- VoidCallback? onTapSuffixIcon,
- GestureTapCallback? onTap,
- ValueChanged<
String> ? onChanged, - ValueChanged<
String> ? onSubmitted, - IconData? suffixIcon,
- bool obscureText = false,
- TextInputType? keyboardType,
- TextInputAction? textInputAction = TextInputAction.next,
- String? errorMsg,
- int? maxLines = 1,
- int? maxTexts,
- int? errorMaxLines,
- Color? bgColor,
- IconData? prefixIcon,
- VoidCallback? onTapPrefixIcon,
- FormFieldValidator<
String> ? validator, - FormFieldSetter<
String> ? onSaved, - VoidCallback? onFieldSubmitted,
- VoidCallback? onEditingComplete,
- FocusNode? nextFocus,
- double? hPadding,
- double? vPadding,
- double? borderRadius,
- bool? filled,
- Color? fillColor,
- bool? isUnderLine,
- 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,
});