AppTextField constructor
const
AppTextField({
- TextEditingController? controller,
- required TextFieldType textFieldType,
- InputDecoration? decoration,
- FocusNode? focus,
- FormFieldValidator<
String> ? validator, - bool? isPassword,
- InputCounterWidgetBuilder? buildCounter,
- bool isValidationRequired = true,
- TextCapitalization? textCapitalization,
- TextInputAction? textInputAction,
- dynamic onFieldSubmitted()?,
- FocusNode? nextFocus,
- TextStyle? textStyle,
- TextAlign textAlign = TextAlign.start,
- int? maxLines,
- int? minLines,
- bool? enabled,
- dynamic onChanged()?,
- Color? cursorColor,
- Widget? suffix,
- Color? suffixIconColor,
- bool? enableSuggestions,
- bool autoFocus = false,
- bool readOnly = false,
- 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 = false,
- bool? showCursor,
- TextSelectionControls? selectionControls,
- StrutStyle? strutStyle,
- String obscuringCharacter = '•',
- String? initialValue,
- Brightness? keyboardAppearance,
- Widget? suffixPasswordVisibleWidget,
- Widget? suffixPasswordInvisibleWidget,
- EditableTextContextMenuBuilder? contextMenuBuilder,
- String? title,
- TextStyle? titleTextStyle,
- int spacingBetweenTitleAndTextFormField = 4,
- bool enableChatGPT = false,
- Widget? loaderWidgetForChatGPT,
- Widget? suffixChatGPTIcon,
- InputDecoration? promptFieldInputDecorationChatGPT,
- bool shortReplyChatGPT = false,
- bool testWithoutKeyChatGPT = false,
- bool? obscureText,
- dynamic onTapOutside()?,
- Key? key,
Implementation
const AppTextField({
this.controller,
required this.textFieldType,
this.decoration,
this.focus,
this.validator,
this.isPassword,
this.buildCounter,
this.isValidationRequired = true,
this.textCapitalization,
this.textInputAction,
this.onFieldSubmitted,
this.nextFocus,
this.textStyle,
this.textAlign = TextAlign.start,
this.maxLines,
this.minLines,
this.enabled,
this.onChanged,
this.cursorColor,
this.suffix,
this.suffixIconColor,
this.enableSuggestions,
this.autoFocus = false,
this.readOnly = false,
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 = false,
this.showCursor,
this.selectionControls,
this.strutStyle,
this.obscuringCharacter = '•',
this.initialValue,
this.keyboardAppearance,
this.suffixPasswordVisibleWidget,
this.suffixPasswordInvisibleWidget,
this.contextMenuBuilder,
this.title,
this.titleTextStyle,
this.spacingBetweenTitleAndTextFormField = 4,
//ChatGpt Params
this.enableChatGPT = false,
this.loaderWidgetForChatGPT,
this.suffixChatGPTIcon,
this.promptFieldInputDecorationChatGPT,
this.shortReplyChatGPT = false,
this.testWithoutKeyChatGPT = false,
this.obscureText,
this.onTapOutside,
super.key,
});