PasswordField constructor
const
PasswordField({
- Key? key,
- TextEditingController? controller,
- String? hintText,
- String? labelText,
- String? helperText,
- String? errorText,
- bool autofocus = false,
- FocusNode? focusNode,
- ValueChanged<
String> ? onChanged, - ValueChanged<
String> ? onSubmitted, - FormFieldValidator<
String> ? validator, - bool obscureTextByDefault = true,
- Color? fillColor,
- Color? textColor,
- Color? hintColor,
- Color? borderColor,
- Color? focusedBorderColor,
- Color? iconColor,
- double borderRadius = 8.0,
- double borderWidth = 1.0,
- EdgeInsetsGeometry? contentPadding,
- TextStyle? style,
- TextStyle? hintStyle,
- TextStyle? labelStyle,
- TextStyle? errorStyle,
- TextStyle? helperStyle,
- bool enableSuggestions = false,
- bool autocorrect = false,
- TextInputAction? textInputAction = TextInputAction.done,
- TextInputType keyboardType = TextInputType.visiblePassword,
- int? maxLength,
- bool showCounter = false,
- bool enabled = true,
- bool fullWidth = true,
- 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,
});