FTextField.password constructor
const
FTextField.password({
- FTextFieldStyle? style,
- Widget? label = const Text('Password'),
- String? hint,
- Widget? description,
- TextMagnifierConfiguration? magnifierConfiguration,
- TextEditingController? controller,
- FocusNode? focusNode,
- TextInputType? keyboardType,
- TextInputAction? textInputAction = TextInputAction.next,
- TextCapitalization textCapitalization = TextCapitalization.none,
- TextAlign textAlign = TextAlign.start,
- TextAlignVertical? textAlignVertical,
- TextDirection? textDirection,
- bool autofocus = false,
- WidgetStatesController? statesController,
- bool obscureText = true,
- bool autocorrect = false,
- SmartDashesType? smartDashesType,
- SmartQuotesType? smartQuotesType,
- bool enableSuggestions = true,
- int? minLines,
- int? maxLines = 1,
- bool expands = false,
- bool readOnly = false,
- bool? showCursor,
- int? maxLength,
- MaxLengthEnforcement? maxLengthEnforcement,
- ValueChanged<
String> ? onChange, - VoidCallback? onEditingComplete,
- ValueChanged<
String> ? onSubmit, - AppPrivateCommandCallback? onAppPrivateCommand,
- List<
TextInputFormatter> ? inputFormatters, - bool enabled = true,
- bool? ignorePointers,
- bool enableInteractSelection = true,
- TextSelectionControls? selectionControls,
- DragStartBehavior dragStartBehavior = DragStartBehavior.start,
- MouseCursor? mouseCursor,
- ScrollPhysics? scrollPhysics,
- ScrollController? scrollController,
- Iterable<
String> ? autofillHints = const [AutofillHints.password], - String? restorationId,
- bool scribbleEnabled = true,
- bool enableIMEPersonalizedLearning = true,
- ContentInsertionConfiguration? contentInsertionConfiguration,
- EditableTextContextMenuBuilder? contextMenuBuilder = _contextMenuBuilder,
- bool canRequestFocus = true,
- UndoHistoryController? undoController,
- SpellCheckConfiguration? spellCheckConfiguration,
- Widget? suffix,
- FormFieldSetter<
String> ? onSaved, - FormFieldValidator<
String> ? validator, - String? initialValue,
- AutovalidateMode? autovalidateMode,
- String? forceErrorText,
- Widget errorBuilder() = _errorBuilder,
- Key? key,
Creates a FTextField configured for passwords.
autofillHints
defaults to AutofillHints.password. It should be overridden with AutofillHints.newPassword
when handling the creation of new passwords.
Implementation
const FTextField.password({
this.style,
this.label = const Text('Password'),
this.hint,
this.description,
this.magnifierConfiguration,
this.controller,
this.focusNode,
this.keyboardType,
this.textInputAction = TextInputAction.next,
this.textCapitalization = TextCapitalization.none,
this.textAlign = TextAlign.start,
this.textAlignVertical,
this.textDirection,
this.autofocus = false,
this.statesController,
this.obscureText = true,
this.autocorrect = false,
this.smartDashesType,
this.smartQuotesType,
this.enableSuggestions = true,
this.minLines,
this.maxLines = 1,
this.expands = false,
this.readOnly = false,
this.showCursor,
this.maxLength,
this.maxLengthEnforcement,
this.onChange,
this.onEditingComplete,
this.onSubmit,
this.onAppPrivateCommand,
this.inputFormatters,
this.enabled = true,
this.ignorePointers,
this.enableInteractSelection = true,
this.selectionControls,
this.dragStartBehavior = DragStartBehavior.start,
this.mouseCursor,
this.scrollPhysics,
this.scrollController,
this.autofillHints = const [AutofillHints.password],
this.restorationId,
this.scribbleEnabled = true,
this.enableIMEPersonalizedLearning = true,
this.contentInsertionConfiguration,
this.contextMenuBuilder = _contextMenuBuilder,
this.canRequestFocus = true,
this.undoController,
this.spellCheckConfiguration,
this.suffix,
this.onSaved,
this.validator,
this.initialValue,
this.autovalidateMode,
this.forceErrorText,
this.errorBuilder = _errorBuilder,
super.key,
});