How to mask the input given (generally passwords) by user inside a textfield?

This Question is posted by seven.srikanth at 1/3/2020 4:29:28 AM

You can use obscureText to make the input given by the user. This is generally used for password inputs. Example below, color: rgb(212, 212, 212); background-color: rgb(30, 30, 30); font-family: Consolas, "Courier New", monospace; font-size: 14px; line-height: 19px; white-space: pre-wrap;](color: #4ec9b0;](TextField( obscureText: color: #569cd6;](true, decoration: color: #4ec9b0;](InputDecoration( border: color: #4ec9b0;](OutlineInputBorder(), labelText: color: #ce9178;]('Password', ), ), Thanks.

Tags: obscureText



1 Comments
Login to comment.
Recent Comments

sunnysandeep705 at 1/22/2020

TextField( controller: passwordController, obscureText: true, style: TextStyle(fontFamily: 'Lato_Regular', fontSize: 14), decoration: InputDecoration( hintText: 'Password', ), ),

Login to Reply.





© 2018 - Fluttercentral | Email to me - Seven.srikanth@gmail.com