Password Input
Password input
Password input is a sub-variant of text input. It is used to collect private data and will hide the characters as a user enters them. A user can choose to toggle on the character visibility by clicking the view icon on the far right of the input field. When using a password input be sure to provide detailed helper text listing any requirements related to the data format, such as types of characters allowed or date structure.
(From Password input documentation)
Parameters
Text that informs the user about the content they need to enter in the field.
The input String text to be shown in the text input.
Whether the password should be hidden or not.
The callback that is triggered when the input service updates the text. An updated text comes as a parameter of the callback.
Callback that is triggered when the user requests to hide the password.
Optional Modifier for this text input.
Optionnal text that provides hints or examples of what to enter.
Optional helper text is pertinent information that assists the user in correctly completing a field. It is often used to explain the correct data format.
The interactive state of the text input.
software keyboard options that contains configuration such as KeyboardType and ImeAction. Defaults to PasswordKeyboardOptions.
when the input service emits an IME action, the corresponding callback is called. Note that this IME action may be different from what you specified in KeyboardOptions.imeAction.
the MutableInteractionSource representing the stream of Interactions for this TextField. You can create and pass in your own remembered MutableInteractionSource if you want to observe Interactions and customize the appearance / behavior of this TextField in different Interactions.