AppTextField constructor
AppTextField({
- TextEditingController? controller,
- required TextFieldType textFieldType,
- InputDecoration? decoration,
- FocusNode? focus,
- FormFieldValidator<
String> ? validator, - bool? isPassword,
- InputCounterWidgetBuilder? buildCounter,
- bool? isValidationRequired,
- TextCapitalization? textCapitalization,
- TextInputAction? textInputAction,
- dynamic onFieldSubmitted()?,
- FocusNode? nextFocus,
- TextStyle? textStyle,
- TextAlign? textAlign,
- int? maxLines,
- int? minLines,
- bool? enabled,
- dynamic onChanged()?,
- Color? cursorColor,
- Widget? suffix,
- Color? suffixIconColor,
- bool? enableSuggestions,
- bool? autoFocus,
- bool? readOnly,
- int? maxLength,
- TextInputType? keyboardType,
- Iterable<
String> ? autoFillHints, - EdgeInsets? scrollPadding,
- dynamic onTap()?,
- double? cursorWidth,
- double? cursorHeight,
- List<
TextInputFormatter> ? inputFormatters, - String? errorThisFieldRequired,
- String? errorInvalidEmail,
- String? errorMinimumPasswordLength,
- String? errorInvalidURL,
- String? errorInvalidUsername,
- TextAlignVertical? textAlignVertical,
- bool? expands,
- bool? showCursor,
- TextSelectionControls? selectionControls,
- StrutStyle? strutStyle,
- String? obscuringCharacter,
- String? initialValue,
- Brightness? keyboardAppearance,
- ToolbarOptions? toolbarOptions,
- Widget? suffixPasswordVisibleWidget,
- Widget? suffixPasswordInvisibleWidget,
- String? errorMsgCustom,
- Key? key,
Implementation
AppTextField({
this.controller,
required this.textFieldType,
this.decoration,
this.focus,
this.validator,
this.isPassword,
this.buildCounter,
this.isValidationRequired,
this.textCapitalization,
this.textInputAction,
this.onFieldSubmitted,
this.nextFocus,
this.textStyle,
this.textAlign,
this.maxLines,
this.minLines,
this.enabled,
this.onChanged,
this.cursorColor,
this.suffix,
this.suffixIconColor,
this.enableSuggestions,
this.autoFocus,
this.readOnly,
this.maxLength,
this.keyboardType,
this.autoFillHints,
this.scrollPadding,
this.onTap,
this.cursorWidth,
this.cursorHeight,
this.inputFormatters,
this.errorThisFieldRequired,
this.errorInvalidEmail,
this.errorMinimumPasswordLength,
this.errorInvalidURL,
this.errorInvalidUsername,
this.textAlignVertical,
this.expands,
this.showCursor,
this.selectionControls,
this.strutStyle,
this.obscuringCharacter,
this.initialValue,
this.keyboardAppearance,
this.toolbarOptions,
this.suffixPasswordVisibleWidget,
this.suffixPasswordInvisibleWidget,
this.errorMsgCustom,
Key? key,
}) : super(key: key);