|
|
|
@ -51,7 +51,7 @@ class LoginView extends GetView<LoginController> { |
|
|
|
_buildSocialLoginSection(isDarkMode), |
|
|
|
|
|
|
|
// 用户协议 |
|
|
|
SizedBox(height: 40.h), |
|
|
|
SizedBox(height: 24.h), |
|
|
|
_buildTermsAndPrivacy(isDarkMode), |
|
|
|
SizedBox(height: 24.h), |
|
|
|
], |
|
|
|
@ -524,14 +524,40 @@ class LoginView extends GetView<LoginController> { |
|
|
|
Widget _buildTermsAndPrivacy(bool isDarkMode) { |
|
|
|
return Column( |
|
|
|
children: [ |
|
|
|
Row( |
|
|
|
mainAxisAlignment: MainAxisAlignment.center, |
|
|
|
crossAxisAlignment: CrossAxisAlignment.center, // 添加这行 |
|
|
|
children: [ |
|
|
|
SizedBox( |
|
|
|
width: 12.w, |
|
|
|
height: 16.w, |
|
|
|
child: Transform.scale( |
|
|
|
scale: 0.7, |
|
|
|
child: Obx(() => Checkbox( |
|
|
|
value: controller.hasAcceptedPrivacy, |
|
|
|
onChanged: (value) => |
|
|
|
controller.hasAcceptedPrivacy = value ?? false, |
|
|
|
activeColor: const Color(0xFF3B82F6), |
|
|
|
materialTapTargetSize: MaterialTapTargetSize.shrinkWrap, |
|
|
|
visualDensity: VisualDensity.compact, |
|
|
|
side: BorderSide( |
|
|
|
width: 1.6, |
|
|
|
color: Colors.grey[600]!, |
|
|
|
), |
|
|
|
)), |
|
|
|
), |
|
|
|
), |
|
|
|
SizedBox(width: 4.w), |
|
|
|
Text( |
|
|
|
'expressConsent'.tr, // 登录/注册即表示你同意 |
|
|
|
'expressConsent'.tr, |
|
|
|
style: TextStyle( |
|
|
|
fontSize: 12.sp, |
|
|
|
color: isDarkMode ? Colors.grey[500] : Colors.grey[600], |
|
|
|
fontSize: 13.sp, |
|
|
|
color: isDarkMode ? Colors.grey[400] : Colors.grey[700], |
|
|
|
), |
|
|
|
), |
|
|
|
SizedBox(height: 4.h), |
|
|
|
], |
|
|
|
), |
|
|
|
//SizedBox(height: 4.h), |
|
|
|
Row( |
|
|
|
mainAxisAlignment: MainAxisAlignment.center, |
|
|
|
children: [ |
|
|
|
|