|
|
|
@ -225,7 +225,7 @@ class SplashView extends GetView<SplashController> { |
|
|
|
children: [ |
|
|
|
// 将勾选框和文本包装在 GestureDetector 中 |
|
|
|
GestureDetector( |
|
|
|
onTap: () => controller.togglePrivacyAcceptance(), |
|
|
|
//onTap: () => controller.togglePrivacyAcceptance(), |
|
|
|
behavior: HitTestBehavior.opaque, // 确保透明区域也能响应点击 |
|
|
|
child: Row( |
|
|
|
children: [ |
|
|
|
@ -267,17 +267,17 @@ class SplashView extends GetView<SplashController> { |
|
|
|
mainAxisAlignment: MainAxisAlignment.center, |
|
|
|
children: [ |
|
|
|
GestureDetector( |
|
|
|
onTap: () { |
|
|
|
String url = 'https://www.voitrans.net/doc/yhxy.html'; // 用户协议链接 |
|
|
|
if (Get.locale?.languageCode != 'zh' || |
|
|
|
Get.locale?.countryCode != 'CN') { |
|
|
|
url = 'https://www.voitrans.net/doc/yhxy_en.html'; // 用户协议英文链接 |
|
|
|
} |
|
|
|
Get.to(() => WebViewPage( |
|
|
|
url: url, |
|
|
|
title: 'userAgreement'.tr, |
|
|
|
)); |
|
|
|
}, |
|
|
|
// onTap: () { |
|
|
|
// String url = 'https://www.voitrans.net/doc/yhxy.html'; // 用户协议链接 |
|
|
|
// if (Get.locale?.languageCode != 'zh' || |
|
|
|
// Get.locale?.countryCode != 'CN') { |
|
|
|
// url = 'https://www.voitrans.net/doc/yhxy_en.html'; // 用户协议英文链接 |
|
|
|
// } |
|
|
|
// Get.to(() => WebViewPage( |
|
|
|
// url: url, |
|
|
|
// title: 'userAgreement'.tr, |
|
|
|
// )); |
|
|
|
// }, |
|
|
|
child: Text( |
|
|
|
'userAgreement'.tr, // 《用户协议》 |
|
|
|
style: TextStyle( |
|
|
|
@ -294,19 +294,19 @@ class SplashView extends GetView<SplashController> { |
|
|
|
), |
|
|
|
), |
|
|
|
GestureDetector( |
|
|
|
onTap: () { |
|
|
|
String url = 'https://www.voitrans.net/doc/ysxy.html'; // 隐私政策链接 |
|
|
|
// onTap: () { |
|
|
|
// String url = 'https://www.voitrans.net/doc/ysxy.html'; // 隐私政策链接 |
|
|
|
|
|
|
|
if (Get.locale?.languageCode != 'zh' || |
|
|
|
Get.locale?.countryCode != 'CN') { |
|
|
|
url = 'https://www.voitrans.net/doc/ysxy_en.html'; // 隐私政策英文链接 |
|
|
|
} |
|
|
|
// if (Get.locale?.languageCode != 'zh' || |
|
|
|
// Get.locale?.countryCode != 'CN') { |
|
|
|
// url = 'https://www.voitrans.net/doc/ysxy_en.html'; // 隐私政策英文链接 |
|
|
|
// } |
|
|
|
|
|
|
|
Get.to(() => WebViewPage( |
|
|
|
url: url, |
|
|
|
title: 'privacyPolicy'.tr, |
|
|
|
)); |
|
|
|
}, |
|
|
|
// Get.to(() => WebViewPage( |
|
|
|
// url: url, |
|
|
|
// title: 'privacyPolicy'.tr, |
|
|
|
// )); |
|
|
|
// }, |
|
|
|
child: Text( |
|
|
|
'privacyPolicy'.tr, // 《隐私政策》 |
|
|
|
style: TextStyle( |
|
|
|
|