Hi@akhtar,
In your TextField, you can call one function named onChange(). You can store the value in a variable and can use it according to your use case. You can see the below example.
TextField(
onChanged: (val) {
pass = pass;
},
obscureText: true,
decoration: InputDecoration(
prefixIcon: Icon(Icons.lock),
labelText: "Password",
),
),
To know more, join our Flutter Certification today.