From 781d8dfcdffe4ec52317861d8e0f7d9b3dcff962 Mon Sep 17 00:00:00 2001 From: JingChiang Date: Sun, 8 Sep 2024 21:35:05 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=96=B0=E5=A2=9E=E4=BF=AE=E6=94=B9?= =?UTF-8?q?=E8=B3=87=E6=96=99=E5=AF=86=E7=A2=BC=E9=A1=AF=E7=A4=BA=E6=8C=89?= =?UTF-8?q?=E9=88=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/PersonalInfo.dart | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/lib/PersonalInfo.dart b/lib/PersonalInfo.dart index e53289f..68ab643 100644 --- a/lib/PersonalInfo.dart +++ b/lib/PersonalInfo.dart @@ -253,6 +253,20 @@ class _PersonalInfoState extends State { subtitle: _isEditing ? TextField( controller: _passwordController, + obscureText: _passwordNotVisible, + decoration: InputDecoration( + suffixIcon: IconButton( + icon: Icon(_passwordNotVisible + ? Icons.visibility + : Icons.visibility_off), + onPressed: () { + setState( + () { + _passwordNotVisible = !_passwordNotVisible; + }, + ); + }, + )), onChanged: (value) { setState(() { _password = value;