-
-
Notifications
You must be signed in to change notification settings - Fork 531
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Show/Hide functionality for password field #48
Comments
Hi @pavankumarkatakam, I'm not sure of the necessity of baking this into the package especially because of version 3.0.0 the package has a more configurable UI structure and one can create their own implementation of a toggle. The problem with including our own toggler is that we'll have to decide how it looks which may not be preferable to all. For instance you can create a Row(
children: <Widget>[
Expanded(
child: FormBuilderTextField(
attribute: "password",
obscureText: _showPassword,
decoration: InputDecoration(labelText: "Password"),
),
),
IconButton(
icon: Icon(Icons.remove_red_eye),
onPressed: (){
setState(() {
_showPassword = !_showPassword;
});
},
)
],
), If you still think this will make a good addition to the package let's engage further and see how it can be done. |
It a basic need for almost every password should have hide and show button with an eye icon. we have keep in flutter with stack widgets i think. i will try it meanwhile anybody can do a pull request.
The text was updated successfully, but these errors were encountered: