Hi@akhtar,
In case you are using the TextField widget (or something that derives from this widget), you can use the obscureText property and set it to true.
TextField(
onChanged: (val) {
pass = pass;
},
obscureText: true,
decoration: InputDecoration(
prefixIcon: Icon(Icons.lock),
labelText: "Password",
),
),
To know more, join our Flutter Certification today.