CustomPasswordTextFieldWidget constructor
CustomPasswordTextFieldWidget({
- Key? key,
- String? initialValue,
- String? label,
- String? hintText,
- Widget? prefix,
- Widget? suffix,
- VoidCallback? suffixAction,
- TextEditingController? controller,
- TextInputType inputType = TextInputType.visiblePassword,
- TextCapitalization textCapitalization = TextCapitalization.none,
- FormFieldValidator? validator,
- bool? isEnabled = true,
- Color? color = const Color(0xFF3E4A59),
- void onChanged()?,
- double? fontSize,
- bool centerText = false,
- bool readOnly = false,
- String? errorMessage,
- void onSubmitted()?,
- bool? filled = false,
- Color? fillColor,
- List<
TextInputFormatter> ? inputFormatters, - TextStyle? hintStyle,
- TextStyle? textStyle,
- TextStyle? labelTextStyle,
- EdgeInsets? contentPadding,
- int? maxLength,
- VoidCallback? onTap,
- InputBorder? border,
- TextInputAction? textInputAction,
- FocusNode? focusNode,
- AutovalidateMode autovalidateMode = AutovalidateMode.onUserInteraction,
- bool unFocusOnTapOutside = false,
Creates a CustomPasswordTextFieldWidget with the specified parameters.
This constructor is similar to CustomTextFieldWidget but defaults to TextInputType.visiblePassword and includes built-in password visibility toggle.
Implementation
CustomPasswordTextFieldWidget({
super.key,
this.initialValue,
this.label,
this.hintText,
this.prefix,
this.suffix,
this.suffixAction,
this.controller,
this.inputType = TextInputType.visiblePassword,
this.textCapitalization = TextCapitalization.none,
this.validator,
this.isEnabled = true,
this.color = const Color(0xFF3E4A59),
this.onChanged,
this.fontSize,
this.centerText = false,
this.readOnly = false,
this.errorMessage,
this.onSubmitted,
this.filled = false,
this.fillColor,
this.inputFormatters,
this.hintStyle,
this.textStyle,
this.labelTextStyle,
this.contentPadding,
this.maxLength,
this.onTap,
this.border,
this.textInputAction,
this.focusNode,
this.autovalidateMode = AutovalidateMode.onUserInteraction,
this.unFocusOnTapOutside = false,
});