fix: 註解掉多餘修改資料按鈕
This commit is contained in:
@@ -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('登出'),
|
||||
|
||||
Reference in New Issue
Block a user