2025-01-02 10:43:41 +08:00
|
|
|
|
import 'package:flutter/cupertino.dart';
|
2024-04-26 11:39:41 +08:00
|
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
|
|
import 'package:flutter/services.dart';
|
|
|
|
|
|
import 'package:flutter_screenutil/flutter_screenutil.dart';
|
|
|
|
|
|
import 'package:get/get.dart';
|
|
|
|
|
|
import 'package:star_lock/flavors.dart';
|
2024-05-28 17:26:02 +08:00
|
|
|
|
import 'package:star_lock/login/login/starLock_login_state.dart';
|
2024-06-05 14:21:14 +08:00
|
|
|
|
import 'package:star_lock/tools/appFirstEnterHandle.dart';
|
|
|
|
|
|
import 'package:star_lock/tools/storage.dart';
|
2024-12-19 14:30:08 +08:00
|
|
|
|
import 'package:star_lock/tools/wechat/customer_tool.dart';
|
2024-04-26 11:39:41 +08:00
|
|
|
|
|
|
|
|
|
|
import '../../appRouters.dart';
|
|
|
|
|
|
import '../../app_settings/app_colors.dart';
|
|
|
|
|
|
import '../../common/XSConstantMacro/XSConstantMacro.dart';
|
|
|
|
|
|
import '../../tools/submitBtn.dart';
|
2024-06-05 14:21:14 +08:00
|
|
|
|
import '../../tools/tf_loginInput.dart';
|
2024-09-02 18:09:57 +08:00
|
|
|
|
import '../../tools/wechat/wechatManageTool.dart';
|
2024-04-26 11:39:41 +08:00
|
|
|
|
import 'starLock_login_logic.dart';
|
|
|
|
|
|
|
|
|
|
|
|
class StarLockLoginXHJPage extends StatefulWidget {
|
|
|
|
|
|
const StarLockLoginXHJPage({Key? key}) : super(key: key);
|
|
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
|
State<StarLockLoginXHJPage> createState() => _StarLockLoginPageState();
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
class _StarLockLoginPageState extends State<StarLockLoginXHJPage> {
|
2025-07-25 17:16:19 +08:00
|
|
|
|
late StarLockLoginLogic logic;
|
|
|
|
|
|
|
2025-07-25 15:39:10 +08:00
|
|
|
|
late StarLockLoginState state;
|
2024-04-26 11:39:41 +08:00
|
|
|
|
|
2024-06-05 14:21:14 +08:00
|
|
|
|
@override
|
|
|
|
|
|
void initState() {
|
|
|
|
|
|
super.initState();
|
2025-07-25 15:39:10 +08:00
|
|
|
|
if (Get.isRegistered<StarLockLoginLogic>()) {
|
|
|
|
|
|
logic = Get.find<StarLockLoginLogic>();
|
|
|
|
|
|
} else {
|
|
|
|
|
|
logic = Get.put(StarLockLoginLogic());
|
|
|
|
|
|
}
|
|
|
|
|
|
state = logic.state;
|
2024-06-05 14:21:14 +08:00
|
|
|
|
WidgetsBinding.instance.addPostFrameCallback((_) async {
|
|
|
|
|
|
AppFirstEnterHandle().getAppFirstEnter(isAgreePrivacy);
|
|
|
|
|
|
});
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2024-04-26 11:39:41 +08:00
|
|
|
|
@override
|
|
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
|
|
return Scaffold(
|
|
|
|
|
|
resizeToAvoidBottomInset: false,
|
|
|
|
|
|
backgroundColor: const Color(0xFFFFFFFF),
|
2024-06-05 14:21:14 +08:00
|
|
|
|
body: SizedBox(
|
|
|
|
|
|
width: Get.width,
|
|
|
|
|
|
child: ListView(
|
|
|
|
|
|
padding: EdgeInsets.only(
|
|
|
|
|
|
top: 110.h,
|
|
|
|
|
|
),
|
|
|
|
|
|
children: <Widget>[
|
|
|
|
|
|
Padding(
|
|
|
|
|
|
padding: EdgeInsets.symmetric(horizontal: 40.w),
|
|
|
|
|
|
child: Column(
|
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
|
|
children: <Widget>[
|
|
|
|
|
|
Row(
|
|
|
|
|
|
children: <Widget>[
|
|
|
|
|
|
Expanded(
|
|
|
|
|
|
child: Text(
|
|
|
|
|
|
'${"欢迎使用".tr}${F.title}',
|
2024-05-28 17:26:02 +08:00
|
|
|
|
style: TextStyle(
|
2024-06-05 14:21:14 +08:00
|
|
|
|
color: AppColors.darkGrayTextColor,
|
|
|
|
|
|
fontSize: 48.sp,
|
|
|
|
|
|
),
|
2024-05-28 17:26:02 +08:00
|
|
|
|
),
|
2024-06-05 14:21:14 +08:00
|
|
|
|
),
|
2024-12-19 14:30:08 +08:00
|
|
|
|
if (state.isChina == true)
|
|
|
|
|
|
IconButton(
|
|
|
|
|
|
onPressed: () {
|
|
|
|
|
|
WechatManageTool.getAppInfo(
|
|
|
|
|
|
CustomerTool.openCustomerService);
|
|
|
|
|
|
},
|
2025-07-25 17:16:19 +08:00
|
|
|
|
icon: Icon(Icons.support_agent,
|
|
|
|
|
|
color: AppColors.mainColor, size: 30)),
|
2024-06-05 14:21:14 +08:00
|
|
|
|
],
|
2024-04-26 11:39:41 +08:00
|
|
|
|
),
|
2024-06-05 14:21:14 +08:00
|
|
|
|
SizedBox(height: 30.h),
|
|
|
|
|
|
GestureDetector(
|
|
|
|
|
|
onTap: () async {
|
|
|
|
|
|
final result =
|
|
|
|
|
|
await Get.toNamed(Routers.selectCountryRegionPage);
|
|
|
|
|
|
if (result != null) {
|
|
|
|
|
|
result as Map<String, dynamic>;
|
|
|
|
|
|
state.countryCode.value = result['code'];
|
2024-12-13 10:59:42 +08:00
|
|
|
|
state.countryKey.value = result['countryName'];
|
2024-06-07 10:53:24 +08:00
|
|
|
|
logic.checkIpAction();
|
2024-06-05 14:21:14 +08:00
|
|
|
|
}
|
2024-05-28 17:26:02 +08:00
|
|
|
|
},
|
2024-06-05 14:21:14 +08:00
|
|
|
|
child: Container(
|
|
|
|
|
|
color: Colors.transparent,
|
|
|
|
|
|
child: Row(
|
|
|
|
|
|
children: <Widget>[
|
|
|
|
|
|
SizedBox(
|
|
|
|
|
|
width: 5.w,
|
|
|
|
|
|
),
|
|
|
|
|
|
Text(
|
2024-08-14 13:58:08 +08:00
|
|
|
|
'国家/地区'.tr,
|
2024-06-05 14:21:14 +08:00
|
|
|
|
style: TextStyle(
|
|
|
|
|
|
fontSize: 22.sp,
|
|
|
|
|
|
color: AppColors.darkGrayTextColor),
|
|
|
|
|
|
),
|
|
|
|
|
|
SizedBox(
|
|
|
|
|
|
width: 40.w,
|
|
|
|
|
|
),
|
|
|
|
|
|
Obx(() {
|
|
|
|
|
|
return Text(
|
2024-12-13 10:59:42 +08:00
|
|
|
|
'${state.countryName} +${state.countryCode.value}',
|
2024-06-05 14:21:14 +08:00
|
|
|
|
style: TextStyle(
|
|
|
|
|
|
fontSize: 22.sp,
|
|
|
|
|
|
color: AppColors.mainColor),
|
|
|
|
|
|
);
|
|
|
|
|
|
})
|
|
|
|
|
|
],
|
2024-05-28 17:26:02 +08:00
|
|
|
|
),
|
|
|
|
|
|
),
|
2024-06-05 14:21:14 +08:00
|
|
|
|
),
|
|
|
|
|
|
LoginInput(
|
|
|
|
|
|
controller: state.emailOrPhoneController,
|
|
|
|
|
|
onchangeAction: (v) {
|
|
|
|
|
|
logic.checkNext(state.emailOrPhoneController);
|
|
|
|
|
|
},
|
|
|
|
|
|
leftWidget: Padding(
|
|
|
|
|
|
padding: EdgeInsets.only(
|
|
|
|
|
|
top: 30.w,
|
|
|
|
|
|
bottom: 20.w,
|
|
|
|
|
|
),
|
2024-05-28 17:26:02 +08:00
|
|
|
|
),
|
2024-06-05 14:21:14 +08:00
|
|
|
|
rightSlot: IconButton(
|
|
|
|
|
|
icon: const Icon(Icons.close),
|
|
|
|
|
|
onPressed: () {},
|
2024-05-28 17:26:02 +08:00
|
|
|
|
),
|
2024-07-26 09:21:22 +08:00
|
|
|
|
label: '请输入手机号或者邮箱'.tr,
|
2024-06-05 14:21:14 +08:00
|
|
|
|
// keyboardType: TextInputType.number,
|
|
|
|
|
|
inputFormatters: <TextInputFormatter>[
|
|
|
|
|
|
LengthLimitingTextInputFormatter(30),
|
|
|
|
|
|
]),
|
|
|
|
|
|
LoginInput(
|
|
|
|
|
|
controller: state.pwdController,
|
|
|
|
|
|
onchangeAction: (v) {
|
|
|
|
|
|
logic.checkNext(state.pwdController);
|
|
|
|
|
|
},
|
|
|
|
|
|
isPwd: true,
|
|
|
|
|
|
// isSuffixIcon: 2,
|
|
|
|
|
|
leftWidget: Padding(
|
|
|
|
|
|
padding: EdgeInsets.only(
|
|
|
|
|
|
top: 30.w,
|
|
|
|
|
|
bottom: 20.w,
|
|
|
|
|
|
),
|
2024-05-28 17:26:02 +08:00
|
|
|
|
),
|
2024-07-25 14:40:02 +08:00
|
|
|
|
label: '请输入密码'.tr,
|
2024-06-05 14:21:14 +08:00
|
|
|
|
inputFormatters: <TextInputFormatter>[
|
|
|
|
|
|
LengthLimitingTextInputFormatter(20),
|
|
|
|
|
|
]),
|
|
|
|
|
|
SizedBox(height: 10.h),
|
2024-04-26 11:39:41 +08:00
|
|
|
|
],
|
|
|
|
|
|
),
|
|
|
|
|
|
),
|
2024-08-27 11:08:44 +08:00
|
|
|
|
_buildBottomAgreement(),
|
2024-06-05 14:21:14 +08:00
|
|
|
|
Padding(
|
|
|
|
|
|
padding: EdgeInsets.symmetric(horizontal: 40.w),
|
|
|
|
|
|
child: Column(
|
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
|
|
children: <Widget>[
|
|
|
|
|
|
SizedBox(height: 5.w),
|
|
|
|
|
|
Obx(() => SubmitBtn(
|
2024-08-01 18:54:32 +08:00
|
|
|
|
btnName: '登录'.tr,
|
2024-06-05 14:21:14 +08:00
|
|
|
|
fontSize: 28.sp,
|
|
|
|
|
|
borderRadius: 20.w,
|
|
|
|
|
|
padding: EdgeInsets.only(top: 25.w, bottom: 25.w),
|
|
|
|
|
|
isDisabled: state.canNext.value,
|
|
|
|
|
|
onClick: state.canNext.value
|
|
|
|
|
|
? () {
|
|
|
|
|
|
if (state.agree.value == false) {
|
|
|
|
|
|
logic.showToast('请先同意用户协议及隐私政策'.tr);
|
|
|
|
|
|
return;
|
|
|
|
|
|
} else {
|
|
|
|
|
|
logic.login();
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
: null)),
|
|
|
|
|
|
SizedBox(height: 10.h),
|
|
|
|
|
|
SizedBox(
|
|
|
|
|
|
width: Get.width,
|
|
|
|
|
|
child: ElevatedButton(
|
|
|
|
|
|
onPressed: () async {
|
2025-01-02 10:43:41 +08:00
|
|
|
|
final dynamic data =
|
|
|
|
|
|
await Get.toNamed(Routers.starLockRegisterPage);
|
|
|
|
|
|
state.emailOrPhoneController.text =
|
|
|
|
|
|
data['phoneOrEmailStr'];
|
|
|
|
|
|
logic.checkNext(state.emailOrPhoneController);
|
|
|
|
|
|
state.pwdController.text = data['pwd'];
|
|
|
|
|
|
logic.checkNext(state.pwdController);
|
|
|
|
|
|
setState(() {});
|
2024-05-28 17:26:02 +08:00
|
|
|
|
},
|
2024-06-05 14:21:14 +08:00
|
|
|
|
style: ElevatedButton.styleFrom(
|
|
|
|
|
|
backgroundColor: AppColors.mainColor),
|
|
|
|
|
|
child: Text(
|
2025-01-02 10:43:41 +08:00
|
|
|
|
'注册'.tr,
|
2024-06-05 14:21:14 +08:00
|
|
|
|
style:
|
|
|
|
|
|
TextStyle(fontSize: 22.sp, color: Colors.white),
|
|
|
|
|
|
),
|
2024-05-28 17:26:02 +08:00
|
|
|
|
),
|
2024-06-05 14:21:14 +08:00
|
|
|
|
),
|
|
|
|
|
|
SizedBox(height: 5.w),
|
|
|
|
|
|
Row(
|
|
|
|
|
|
mainAxisAlignment: MainAxisAlignment.center,
|
|
|
|
|
|
children: <Widget>[
|
2024-05-28 17:26:02 +08:00
|
|
|
|
GestureDetector(
|
|
|
|
|
|
child: SizedBox(
|
|
|
|
|
|
// width: 150.w,
|
|
|
|
|
|
height: 50.h,
|
|
|
|
|
|
// color: Colors.red,
|
|
|
|
|
|
child: Center(
|
2024-08-14 13:58:08 +08:00
|
|
|
|
child: Text('${'忘记密码'.tr}?',
|
2024-05-28 17:26:02 +08:00
|
|
|
|
style: TextStyle(
|
|
|
|
|
|
fontSize: 22.sp,
|
|
|
|
|
|
color: AppColors.mainColor)),
|
|
|
|
|
|
),
|
|
|
|
|
|
),
|
|
|
|
|
|
onTap: () {
|
2024-06-05 14:21:14 +08:00
|
|
|
|
Navigator.pushNamed(
|
|
|
|
|
|
context, Routers.starLockForgetPasswordPage);
|
2024-05-28 17:26:02 +08:00
|
|
|
|
},
|
2024-06-05 14:21:14 +08:00
|
|
|
|
),
|
|
|
|
|
|
Expanded(
|
|
|
|
|
|
child: SizedBox(
|
|
|
|
|
|
width: 10.sp,
|
|
|
|
|
|
)),
|
2025-01-02 10:43:41 +08:00
|
|
|
|
Obx(() => Visibility(
|
|
|
|
|
|
visible: state.isCheckVerifyEnable.value,
|
|
|
|
|
|
child: GestureDetector(
|
|
|
|
|
|
child: SizedBox(
|
|
|
|
|
|
// width: 150.w,
|
|
|
|
|
|
height: 50.h,
|
|
|
|
|
|
// color: Colors.red,
|
|
|
|
|
|
child: Center(
|
|
|
|
|
|
child: Text('一键登录'.tr,
|
|
|
|
|
|
style: TextStyle(
|
|
|
|
|
|
fontSize: 22.sp,
|
|
|
|
|
|
color: AppColors.mainColor)),
|
|
|
|
|
|
),
|
|
|
|
|
|
),
|
|
|
|
|
|
onTap: () async {
|
2025-07-30 09:01:26 +08:00
|
|
|
|
logic.oneClickLoginAction(context,showErrorMsg: true);
|
2025-01-02 10:43:41 +08:00
|
|
|
|
},
|
|
|
|
|
|
),
|
|
|
|
|
|
))
|
2024-06-05 14:21:14 +08:00
|
|
|
|
],
|
|
|
|
|
|
),
|
|
|
|
|
|
],
|
|
|
|
|
|
),
|
|
|
|
|
|
)
|
|
|
|
|
|
],
|
|
|
|
|
|
),
|
2024-04-26 11:39:41 +08:00
|
|
|
|
));
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2024-05-28 17:26:02 +08:00
|
|
|
|
Widget loginInput(
|
|
|
|
|
|
{TextEditingController? controller,
|
|
|
|
|
|
List<TextInputFormatter>? inputFormatters,
|
|
|
|
|
|
String? hintText,
|
|
|
|
|
|
bool? isHaveLeftWidget,
|
|
|
|
|
|
Widget? leftWidget,
|
|
|
|
|
|
String? label,
|
|
|
|
|
|
bool? isPwd,
|
|
|
|
|
|
BlockStrCallback? onchangeAction}) {
|
2024-04-26 11:39:41 +08:00
|
|
|
|
return Container(
|
|
|
|
|
|
width: 1.sp,
|
2024-05-28 17:26:02 +08:00
|
|
|
|
color: Colors.transparent,
|
2024-04-26 11:39:41 +08:00
|
|
|
|
child: Column(
|
2024-05-28 17:26:02 +08:00
|
|
|
|
children: <Widget>[
|
2024-04-26 11:39:41 +08:00
|
|
|
|
Row(
|
2024-05-28 17:26:02 +08:00
|
|
|
|
children: <Widget>[
|
2024-04-26 11:39:41 +08:00
|
|
|
|
Container(
|
|
|
|
|
|
color: Colors.red,
|
|
|
|
|
|
child: Image.asset(
|
|
|
|
|
|
'images/icon_login_password.png',
|
|
|
|
|
|
width: 36.w,
|
|
|
|
|
|
height: 36.w,
|
|
|
|
|
|
),
|
|
|
|
|
|
),
|
|
|
|
|
|
SizedBox(
|
|
|
|
|
|
width: 40.w,
|
|
|
|
|
|
),
|
|
|
|
|
|
Expanded(
|
|
|
|
|
|
child: TextField(
|
|
|
|
|
|
//输入框一行
|
|
|
|
|
|
maxLines: 1,
|
|
|
|
|
|
controller: controller,
|
|
|
|
|
|
onChanged: onchangeAction,
|
|
|
|
|
|
// autofocus: false,
|
|
|
|
|
|
inputFormatters: inputFormatters,
|
|
|
|
|
|
decoration: InputDecoration(
|
|
|
|
|
|
//输入里面输入文字内边距设置
|
|
|
|
|
|
contentPadding: const EdgeInsets.only(
|
|
|
|
|
|
top: 8.0, left: -19.0, right: -15.0, bottom: 8.0),
|
|
|
|
|
|
labelText: label,
|
|
|
|
|
|
labelStyle: TextStyle(fontSize: 22.sp),
|
|
|
|
|
|
hintStyle: TextStyle(fontSize: 22.sp),
|
|
|
|
|
|
hintText: hintText,
|
|
|
|
|
|
//不需要输入框下划线
|
|
|
|
|
|
border: InputBorder.none,
|
|
|
|
|
|
//左边图标设置
|
|
|
|
|
|
// icon: isHaveLeftWidget == true
|
|
|
|
|
|
// ? leftWidget
|
|
|
|
|
|
// : SizedBox(
|
|
|
|
|
|
// width: 20.w,
|
|
|
|
|
|
// height: 40.w,
|
|
|
|
|
|
// ),
|
|
|
|
|
|
),
|
|
|
|
|
|
obscureText: isPwd ?? false,
|
|
|
|
|
|
),
|
|
|
|
|
|
),
|
|
|
|
|
|
],
|
|
|
|
|
|
),
|
|
|
|
|
|
Container(
|
|
|
|
|
|
height: 0.5.h,
|
|
|
|
|
|
color: Colors.grey,
|
|
|
|
|
|
),
|
|
|
|
|
|
],
|
|
|
|
|
|
),
|
|
|
|
|
|
);
|
|
|
|
|
|
}
|
2024-08-27 11:08:44 +08:00
|
|
|
|
|
|
|
|
|
|
Widget _buildBottomAgreement() {
|
|
|
|
|
|
return Container(
|
|
|
|
|
|
width: 1.sw,
|
2024-12-13 10:59:42 +08:00
|
|
|
|
padding:
|
|
|
|
|
|
EdgeInsets.only(left: 40.w, bottom: 30.w, right: 40.w, top: 40.h),
|
2024-08-27 11:08:44 +08:00
|
|
|
|
child: Wrap(
|
|
|
|
|
|
// mainAxisAlignment: MainAxisAlignment.start,
|
|
|
|
|
|
children: <Widget>[
|
|
|
|
|
|
Obx(() => GestureDetector(
|
|
|
|
|
|
onTap: () {
|
|
|
|
|
|
state.agree.value = !state.agree.value;
|
|
|
|
|
|
logic.changeAgreeState();
|
|
|
|
|
|
},
|
|
|
|
|
|
child: Container(
|
|
|
|
|
|
width: 40.w,
|
|
|
|
|
|
height: 40.w,
|
|
|
|
|
|
// color: Colors.red,
|
|
|
|
|
|
padding: EdgeInsets.only(
|
|
|
|
|
|
left: 5.w,
|
|
|
|
|
|
right: 10.w,
|
|
|
|
|
|
),
|
|
|
|
|
|
child: Image.asset(
|
|
|
|
|
|
state.agree.value
|
|
|
|
|
|
? 'images/icon_round_select.png'
|
|
|
|
|
|
: 'images/icon_round_unSelect.png',
|
|
|
|
|
|
width: 20.w,
|
|
|
|
|
|
height: 20.w,
|
|
|
|
|
|
),
|
2024-12-13 10:59:42 +08:00
|
|
|
|
))),
|
2024-08-27 11:08:44 +08:00
|
|
|
|
SizedBox(
|
|
|
|
|
|
width: 10.w,
|
|
|
|
|
|
),
|
|
|
|
|
|
Text(
|
2024-12-13 10:59:42 +08:00
|
|
|
|
'我已阅读并同意'.tr,
|
|
|
|
|
|
style: TextStyle(color: const Color(0xff333333), fontSize: 20.sp),
|
2024-08-27 11:08:44 +08:00
|
|
|
|
),
|
|
|
|
|
|
GestureDetector(
|
2024-12-13 10:59:42 +08:00
|
|
|
|
child: Text('《${'用户协议'.tr}》',
|
|
|
|
|
|
style: TextStyle(color: AppColors.mainColor, fontSize: 20.sp)),
|
2024-08-27 11:08:44 +08:00
|
|
|
|
onTap: () {
|
2024-12-13 10:59:42 +08:00
|
|
|
|
Get.toNamed(Routers.webviewShowPage, arguments: <String, String>{
|
|
|
|
|
|
'url': XSConstantMacro.userAgreementURL,
|
|
|
|
|
|
'title': '用户协议'.tr
|
|
|
|
|
|
});
|
2024-08-27 11:08:44 +08:00
|
|
|
|
},
|
|
|
|
|
|
),
|
|
|
|
|
|
GestureDetector(
|
2024-12-13 10:59:42 +08:00
|
|
|
|
child: Text('《${'隐私政策'.tr}》',
|
|
|
|
|
|
style: TextStyle(color: AppColors.mainColor, fontSize: 20.sp)),
|
2024-08-27 11:08:44 +08:00
|
|
|
|
onTap: () {
|
2024-12-13 10:59:42 +08:00
|
|
|
|
Get.toNamed(Routers.webviewShowPage, arguments: <String, String>{
|
|
|
|
|
|
'url': XSConstantMacro.privacyPolicyURL,
|
|
|
|
|
|
'title': '隐私政策'.tr
|
|
|
|
|
|
});
|
2024-08-27 11:08:44 +08:00
|
|
|
|
},
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
// Flexible(
|
|
|
|
|
|
// child: Text.rich(
|
|
|
|
|
|
// TextSpan(
|
|
|
|
|
|
// text: '我已阅读并同意'.tr,
|
|
|
|
|
|
// style:
|
|
|
|
|
|
// TextStyle(color: const Color(0xff333333), fontSize: 20.sp),
|
|
|
|
|
|
// children: <InlineSpan>[
|
|
|
|
|
|
// WidgetSpan(
|
|
|
|
|
|
// alignment: PlaceholderAlignment.middle,
|
|
|
|
|
|
// child: GestureDetector(
|
|
|
|
|
|
// child: Text(
|
|
|
|
|
|
// '《${'用户协议'.tr}》',
|
|
|
|
|
|
// style: TextStyle(
|
|
|
|
|
|
// color: AppColors.mainColor, fontSize: 20.sp)),
|
|
|
|
|
|
// onTap: () {
|
|
|
|
|
|
// Get.toNamed(Routers.webviewShowPage,
|
|
|
|
|
|
// arguments: <String, String>{
|
|
|
|
|
|
// 'url': XSConstantMacro.userAgreementURL,
|
|
|
|
|
|
// 'title': '用户协议'.tr
|
|
|
|
|
|
// });
|
|
|
|
|
|
// },
|
|
|
|
|
|
// )),
|
|
|
|
|
|
// WidgetSpan(
|
|
|
|
|
|
// alignment: PlaceholderAlignment.middle,
|
|
|
|
|
|
// child: GestureDetector(
|
|
|
|
|
|
// child: Text(
|
|
|
|
|
|
// '《${'隐私政策'.tr}》',
|
|
|
|
|
|
// style: TextStyle(
|
|
|
|
|
|
// color: AppColors.mainColor, fontSize: 20.sp)),
|
|
|
|
|
|
// onTap: () {
|
|
|
|
|
|
// Get.toNamed(Routers.webviewShowPage,
|
|
|
|
|
|
// arguments: <String, String>{
|
|
|
|
|
|
// 'url': XSConstantMacro.privacyPolicyURL,
|
|
|
|
|
|
// 'title': '隐私政策'.tr
|
|
|
|
|
|
// });
|
|
|
|
|
|
// },
|
|
|
|
|
|
// )),
|
|
|
|
|
|
// ],
|
|
|
|
|
|
// )),
|
|
|
|
|
|
// )
|
|
|
|
|
|
],
|
|
|
|
|
|
),
|
|
|
|
|
|
);
|
|
|
|
|
|
}
|
2024-04-26 11:39:41 +08:00
|
|
|
|
}
|