PasswordField constructor

const PasswordField({
  1. Key? key,
  2. TextEditingController? controller,
  3. String? hintText,
  4. String? labelText,
  5. String? helperText,
  6. String? errorText,
  7. bool autofocus = false,
  8. FocusNode? focusNode,
  9. ValueChanged<String>? onChanged,
  10. ValueChanged<String>? onSubmitted,
  11. FormFieldValidator<String>? validator,
  12. bool obscureTextByDefault = true,
  13. Color? fillColor,
  14. Color? textColor,
  15. Color? hintColor,
  16. Color? borderColor,
  17. Color? focusedBorderColor,
  18. Color? iconColor,
  19. double borderRadius = 8.0,
  20. double borderWidth = 1.0,
  21. EdgeInsetsGeometry? contentPadding,
  22. TextStyle? style,
  23. TextStyle? hintStyle,
  24. TextStyle? labelStyle,
  25. TextStyle? errorStyle,
  26. TextStyle? helperStyle,
  27. bool enableSuggestions = false,
  28. bool autocorrect = false,
  29. TextInputAction? textInputAction = TextInputAction.done,
  30. TextInputType keyboardType = TextInputType.visiblePassword,
  31. int? maxLength,
  32. bool showCounter = false,
  33. bool enabled = true,
  34. bool fullWidth = true,
  35. double horizontalPadding = 16.0,
})

Implementation

const PasswordField({
  super.key,
  this.controller,
  this.hintText,
  this.labelText,
  this.helperText,
  this.errorText,
  this.autofocus = false,
  this.focusNode,
  this.onChanged,
  this.onSubmitted,
  this.validator,
  this.obscureTextByDefault = true,
  this.fillColor,
  this.textColor,
  this.hintColor,
  this.borderColor,
  this.focusedBorderColor,
  this.iconColor,
  this.borderRadius = 8.0,
  this.borderWidth = 1.0,
  this.contentPadding,
  this.style,
  this.hintStyle,
  this.labelStyle,
  this.errorStyle,
  this.helperStyle,
  this.enableSuggestions = false,
  this.autocorrect = false,
  this.textInputAction = TextInputAction.done,
  this.keyboardType = TextInputType.visiblePassword,
  this.maxLength,
  this.showCounter = false,
  this.enabled = true,
  this.fullWidth = true,
  this.horizontalPadding = 16.0,
});