Fluent2PasswordField class

A password field with a button to show or hide the entered text.

Tab moves from the field to the button. Space or Enter toggles visibility.

Fluent2PasswordField(label: 'Password', onChanged: (v) => setState(() => password = v))
Inheritance

Constructors

Fluent2PasswordField({Key? key, String? label, String? hint, String? value, TextEditingController? controller, FocusNode? focusNode, ValueChanged<String>? onChanged, ValueChanged<String>? onSubmitted, bool autofocus = false, TextInputAction? textInputAction, String? validationMessage, bool invalid = false, Fluent2InputAppearance appearance = Fluent2InputAppearance.outline, Fluent2InputSize size = Fluent2InputSize.medium})
A password field.
const

Properties

appearance → Fluent2InputAppearance
Fluent's appearance.
final
autofocus → bool
Whether it takes focus when it first shows.
final
controller → TextEditingController?
The text, when a controller holds it.
final
focusNode → FocusNode?
Its focus node.
final
hashCode → int
The hash code for this object.
no setterinherited
hint → String?
Placeholder text shown when the field is empty.
final
invalid → bool
Draw the error stroke with no words.
final
key → Key?
Controls how one widget replaces another widget in the tree.
finalinherited
label → String?
The field's name.
final
onChanged → ValueChanged<String>?
Called when the user edits the password.
final
onSubmitted → ValueChanged<String>?
Called when the user submits the password.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
size → Fluent2InputSize
Fluent's size.
final
textInputAction → TextInputAction?
The keyboard's action key.
final
validationMessage → String?
What is wrong, under the field in the error stroke.
final
value → String?
The text, when the page holds it with onChanged.
final

Methods

build(BuildContext context) → Widget
Describes the part of the user interface represented by this widget.
override
createElement() → StatelessElement
Creates a StatelessElement to manage this widget's location in the tree.
inherited
debugDescribeChildren() → List<DiagnosticsNode>
Returns a list of DiagnosticsNode objects describing this node's children.
inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) → DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) → String
A string representation of this object.
inherited
toStringDeep({String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug, int wrapWidth = 65}) → String
Returns a string representation of this node and its descendants.
inherited
toStringShallow({String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) → String
Returns a one-line detailed description of the object.
inherited
toStringShort() → String
A short, textual description of this widget.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited