feat: 新增修改資料密碼顯示按鈕
This commit is contained in:
parent
399f880054
commit
781d8dfcdf
|
|
@ -253,6 +253,20 @@ class _PersonalInfoState extends State<PersonalInfo> {
|
||||||
subtitle: _isEditing
|
subtitle: _isEditing
|
||||||
? TextField(
|
? TextField(
|
||||||
controller: _passwordController,
|
controller: _passwordController,
|
||||||
|
obscureText: _passwordNotVisible,
|
||||||
|
decoration: InputDecoration(
|
||||||
|
suffixIcon: IconButton(
|
||||||
|
icon: Icon(_passwordNotVisible
|
||||||
|
? Icons.visibility
|
||||||
|
: Icons.visibility_off),
|
||||||
|
onPressed: () {
|
||||||
|
setState(
|
||||||
|
() {
|
||||||
|
_passwordNotVisible = !_passwordNotVisible;
|
||||||
|
},
|
||||||
|
);
|
||||||
|
},
|
||||||
|
)),
|
||||||
onChanged: (value) {
|
onChanged: (value) {
|
||||||
setState(() {
|
setState(() {
|
||||||
_password = value;
|
_password = value;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user