|
|
|
@ -161,13 +161,14 @@ class LoginView extends GetView<LoginController> { |
|
|
|
), |
|
|
|
), |
|
|
|
SizedBox(height: 4.h), |
|
|
|
Text( |
|
|
|
'loginTips'.tr, // 请使用手机号或邮箱登录/注册 |
|
|
|
style: TextStyle( |
|
|
|
fontSize: 14.sp, |
|
|
|
color: isDarkMode ? Colors.grey[400] : Colors.black54, |
|
|
|
if (!controller.isChinaMainland.value) |
|
|
|
Text( |
|
|
|
'loginTips'.tr, // 请使用手机号或邮箱登录/注册 |
|
|
|
style: TextStyle( |
|
|
|
fontSize: 14.sp, |
|
|
|
color: isDarkMode ? Colors.grey[400] : Colors.black54, |
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
|
], |
|
|
|
); |
|
|
|
} |
|
|
|
@ -214,11 +215,12 @@ class LoginView extends GetView<LoginController> { |
|
|
|
color: isDarkMode ? Colors.white : Colors.black, |
|
|
|
), |
|
|
|
)), |
|
|
|
Icon( |
|
|
|
Icons.arrow_drop_down, |
|
|
|
color: isDarkMode ? Colors.grey[400] : Colors.black54, |
|
|
|
size: 20.sp, |
|
|
|
), |
|
|
|
if (!controller.isChinaMainland.value) |
|
|
|
Icon( |
|
|
|
Icons.arrow_drop_down, |
|
|
|
color: isDarkMode ? Colors.grey[400] : Colors.black54, |
|
|
|
size: 20.sp, |
|
|
|
), |
|
|
|
], |
|
|
|
), |
|
|
|
), |
|
|
|
@ -263,6 +265,10 @@ class LoginView extends GetView<LoginController> { |
|
|
|
|
|
|
|
// 添加国家选择底部弹窗 |
|
|
|
void _showCountryPicker(bool isDarkMode) { |
|
|
|
// 中国大陆用户不显示国家选择器 |
|
|
|
if (controller.isChinaMainland.value) { |
|
|
|
return; |
|
|
|
} |
|
|
|
Get.bottomSheet( |
|
|
|
Container( |
|
|
|
height: 400.h, |
|
|
|
@ -477,14 +483,20 @@ class LoginView extends GetView<LoginController> { |
|
|
|
Row( |
|
|
|
mainAxisAlignment: MainAxisAlignment.center, |
|
|
|
children: [ |
|
|
|
_buildSocialButton(FontAwesomeIcons.google, Colors.red, isDarkMode), |
|
|
|
SizedBox(width: 24.w), |
|
|
|
_buildSocialButton( |
|
|
|
FontAwesomeIcons.weixin, Colors.green, isDarkMode), |
|
|
|
if (controller.isChinaMainland.value) ...[ |
|
|
|
_buildSocialButton( |
|
|
|
FontAwesomeIcons.weixin, Colors.green, isDarkMode), |
|
|
|
SizedBox(width: 24.w) |
|
|
|
] else ...[ |
|
|
|
_buildSocialButton( |
|
|
|
FontAwesomeIcons.google, Colors.red, isDarkMode), |
|
|
|
SizedBox(width: 24.w), |
|
|
|
], |
|
|
|
|
|
|
|
// Apple登录按钮(仅在iOS上显示) |
|
|
|
if (GetPlatform.isIOS) ...[ |
|
|
|
SizedBox(width: 24.w), |
|
|
|
_buildSocialButton(FontAwesomeIcons.apple, Colors.black, isDarkMode), |
|
|
|
_buildSocialButton( |
|
|
|
FontAwesomeIcons.apple, Colors.black, isDarkMode), |
|
|
|
], |
|
|
|
// SizedBox(width: 24.w), |
|
|
|
// _buildSocialButton( |
|
|
|
@ -492,7 +504,7 @@ class LoginView extends GetView<LoginController> { |
|
|
|
// 根据配置显示游客登录按钮 |
|
|
|
if (controller.isGuestLoginVisible) ...[ |
|
|
|
SizedBox(width: 24.w), |
|
|
|
_buildSocialButton(FontAwesomeIcons.userSecret, Colors.grey, |
|
|
|
_buildSocialButton(FontAwesomeIcons.userSecret, Colors.black, |
|
|
|
isDarkMode), // 游客登录按钮 |
|
|
|
], |
|
|
|
], |
|
|
|
|