|
|
|
@ -34,7 +34,10 @@ class ProfileMeetingView extends GetView<ProfileController> { |
|
|
|
color: isDarkMode ? Colors.white : Colors.black87, |
|
|
|
size: 20.w, |
|
|
|
), |
|
|
|
onPressed: () => Get.back(), |
|
|
|
onPressed: () { |
|
|
|
controller.forceRollbackIfUnsaved(); |
|
|
|
Get.back(); |
|
|
|
}, |
|
|
|
), |
|
|
|
title: Text( |
|
|
|
'账号和资料', |
|
|
|
@ -92,35 +95,40 @@ class ProfileMeetingView extends GetView<ProfileController> { |
|
|
|
} |
|
|
|
|
|
|
|
Widget _buildBody(bool isDarkMode) { |
|
|
|
return SafeArea( |
|
|
|
child: ListView( |
|
|
|
padding: EdgeInsets.symmetric(horizontal: 16.w), |
|
|
|
children: [ |
|
|
|
SizedBox(height: 4.h), |
|
|
|
_buildAvatarSection(isDarkMode), |
|
|
|
SizedBox(height: 16.h), |
|
|
|
_buildNicknameItem(isDarkMode), |
|
|
|
Divider( |
|
|
|
height: 0.5.h, |
|
|
|
color: isDarkMode ? Colors.grey[800] : Colors.grey[200]), |
|
|
|
_buildLoginMethodItem(isDarkMode), |
|
|
|
Divider( |
|
|
|
height: 0.5.h, |
|
|
|
color: isDarkMode ? Colors.grey[800] : Colors.grey[200]), |
|
|
|
_buildManageLoginItem(isDarkMode), |
|
|
|
Divider( |
|
|
|
height: 0.5.h, |
|
|
|
color: isDarkMode ? Colors.grey[800] : Colors.grey[200]), |
|
|
|
SizedBox(height: 32.h), |
|
|
|
_buildLogoutButton(isDarkMode), |
|
|
|
SizedBox(height: 16.h), |
|
|
|
_buildDeleteAccountButton(isDarkMode), |
|
|
|
SizedBox(height: 8.h), |
|
|
|
_buildWarningText(), |
|
|
|
SizedBox(height: 32.h), |
|
|
|
], |
|
|
|
), |
|
|
|
); |
|
|
|
return WillPopScope( |
|
|
|
onWillPop: () async { |
|
|
|
controller.forceRollbackIfUnsaved(); |
|
|
|
return true; |
|
|
|
}, |
|
|
|
child: SafeArea( |
|
|
|
child: ListView( |
|
|
|
padding: EdgeInsets.symmetric(horizontal: 16.w), |
|
|
|
children: [ |
|
|
|
SizedBox(height: 4.h), |
|
|
|
_buildAvatarSection(isDarkMode), |
|
|
|
SizedBox(height: 16.h), |
|
|
|
_buildNicknameItem(isDarkMode), |
|
|
|
Divider( |
|
|
|
height: 0.5.h, |
|
|
|
color: isDarkMode ? Colors.grey[800] : Colors.grey[200]), |
|
|
|
_buildLoginMethodItem(isDarkMode), |
|
|
|
Divider( |
|
|
|
height: 0.5.h, |
|
|
|
color: isDarkMode ? Colors.grey[800] : Colors.grey[200]), |
|
|
|
_buildManageLoginItem(isDarkMode), |
|
|
|
Divider( |
|
|
|
height: 0.5.h, |
|
|
|
color: isDarkMode ? Colors.grey[800] : Colors.grey[200]), |
|
|
|
SizedBox(height: 32.h), |
|
|
|
_buildLogoutButton(isDarkMode), |
|
|
|
SizedBox(height: 16.h), |
|
|
|
_buildDeleteAccountButton(isDarkMode), |
|
|
|
SizedBox(height: 8.h), |
|
|
|
_buildWarningText(), |
|
|
|
SizedBox(height: 32.h), |
|
|
|
], |
|
|
|
), |
|
|
|
)); |
|
|
|
} |
|
|
|
|
|
|
|
Widget _buildAvatarSection(bool isDarkMode) { |
|
|
|
|