fix: 註解掉多餘修改資料按鈕

This commit is contained in:
JingChiang
2024-09-22 17:37:01 +08:00
parent 36b2d7c151
commit 9c65267769

View File

@@ -202,21 +202,21 @@ class _PersonalInfoState extends State<PersonalInfo> {
Divider(),
Divider(),
ElevatedButton(
onPressed: () {
if (_isEditing) {
_saveChanges();
} else {
_toggleEdit();
}
},
child: Text(_isEditing ? '儲存變更' : '修改資料'),
style: TextButton.styleFrom(
backgroundColor: Color(0xFFF5E3C3),
textStyle: TextStyle(fontSize: 18),
shadowColor: Colors.transparent,
),
),
// ElevatedButton(
// onPressed: () {
// if (_isEditing) {
// _saveChanges();
// } else {
// _toggleEdit();
// }
// },
// child: Text(_isEditing ? '儲存變更' : '修改資料'),
// style: TextButton.styleFrom(
// backgroundColor: Color(0xFFF5E3C3),
// textStyle: TextStyle(fontSize: 18),
// shadowColor: Colors.transparent,
// ),
// ),
ElevatedButton(
onPressed: _loginOut,
child: Text('登出'),