CustomPasswordTextFieldWidget constructor

CustomPasswordTextFieldWidget({
  1. Key? key,
  2. String? initialValue,
  3. String? label,
  4. String? hintText,
  5. Widget? prefix,
  6. Widget? suffix,
  7. VoidCallback? suffixAction,
  8. TextEditingController? controller,
  9. TextInputType inputType = TextInputType.visiblePassword,
  10. TextCapitalization textCapitalization = TextCapitalization.none,
  11. FormFieldValidator? validator,
  12. bool? isEnabled = true,
  13. Color? color = const Color(0xFF3E4A59),
  14. void onChanged(
    1. String
    )?,
  15. double? fontSize,
  16. bool centerText = false,
  17. bool readOnly = false,
  18. String? errorMessage,
  19. void onSubmitted(
    1. String
    )?,
  20. bool? filled = false,
  21. Color? fillColor,
  22. List<TextInputFormatter>? inputFormatters,
  23. TextStyle? hintStyle,
  24. TextStyle? textStyle,
  25. TextStyle? labelTextStyle,
  26. EdgeInsets? contentPadding,
  27. int? maxLength,
  28. VoidCallback? onTap,
  29. InputBorder? border,
  30. TextInputAction? textInputAction,
  31. FocusNode? focusNode,
  32. AutovalidateMode autovalidateMode = AutovalidateMode.onUserInteraction,
  33. 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,
});