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(),
Divider(), Divider(),
ElevatedButton( // ElevatedButton(
onPressed: () { // onPressed: () {
if (_isEditing) { // if (_isEditing) {
_saveChanges(); // _saveChanges();
} else { // } else {
_toggleEdit(); // _toggleEdit();
} // }
}, // },
child: Text(_isEditing ? '儲存變更' : '修改資料'), // child: Text(_isEditing ? '儲存變更' : '修改資料'),
style: TextButton.styleFrom( // style: TextButton.styleFrom(
backgroundColor: Color(0xFFF5E3C3), // backgroundColor: Color(0xFFF5E3C3),
textStyle: TextStyle(fontSize: 18), // textStyle: TextStyle(fontSize: 18),
shadowColor: Colors.transparent, // shadowColor: Colors.transparent,
), // ),
), // ),
ElevatedButton( ElevatedButton(
onPressed: _loginOut, onPressed: _loginOut,
child: Text('登出'), child: Text('登出'),