feat:修改鑫泓佳关于页面

This commit is contained in:
anfe 2024-04-30 09:32:06 +08:00
parent 294ee590eb
commit 026b439549
2 changed files with 171 additions and 140 deletions

View File

@ -251,7 +251,7 @@ class _LockDetailPageState extends State<LockDetailPage>
width: 100.r, width: 100.r,
height: 100.r, height: 100.r,
decoration: BoxDecoration( decoration: BoxDecoration(
color: Colors.white.withOpacity(0.9), color: Colors.white,
borderRadius: BorderRadius.circular(100.w), borderRadius: BorderRadius.circular(100.w),
boxShadow: [ boxShadow: [
BoxShadow( BoxShadow(

View File

@ -56,49 +56,30 @@ class _AboutPageState extends State<AboutPage> {
body: Column( body: Column(
crossAxisAlignment: CrossAxisAlignment.center, crossAxisAlignment: CrossAxisAlignment.center,
children: [ children: [
Align(
alignment: Alignment.topRight,
child: GestureDetector(
onTap: logic.handleTap,
child: Container(
color: Colors.transparent,
width: 80.w,
height: 80.h,
),
),
),
SizedBox(height: 70.h),
Row(mainAxisAlignment: MainAxisAlignment.center, children: [
Image.asset(
F.sw( F.sw(
defaultCall: () => "images/icon_main_1024.png", defaultCall: () => logoView(),
xhjCall: () => "images/icon_main_xhj_1024.png"), xhjCall: () => const SizedBox()),
width: 160.w, listView(),
height: 160.w), F.sw(
]), defaultCall: () => const SizedBox(),
SizedBox(height: 20.h), xhjCall: () => logoView()),
Text( ],
"${F.title} $version+$buildNumber",
style:
TextStyle(fontSize: 24.sp, color: AppColors.blackColor),
),
SizedBox(height: 20.h),
Text(
F.apiPrefix,
style:
TextStyle(fontSize: 24.sp, color: AppColors.blackColor),
),
SizedBox(
height: 60.h,
), ),
);
});
}
//
Widget listView() {
Widget view = Column(
children: [
CommonItem( CommonItem(
leftTitel: TranslationLoader.lanKeys!.introduce!.tr, leftTitel: TranslationLoader.lanKeys!.introduce!.tr,
rightTitle: "", rightTitle: "",
isHaveLine: false, isHaveLine: false,
isHaveDirection: true, isHaveDirection: true,
action: () { action: () {
Navigator.pushNamed(context, Routers.webviewShowPage, Navigator.pushNamed(context, Routers.webviewShowPage, arguments: {
arguments: {
"url": XSConstantMacro.introduceURL, "url": XSConstantMacro.introduceURL,
"title": '介绍'.tr "title": '介绍'.tr
}); });
@ -132,8 +113,7 @@ class _AboutPageState extends State<AboutPage> {
isHaveLine: false, isHaveLine: false,
isHaveDirection: true, isHaveDirection: true,
action: () { action: () {
Navigator.pushNamed(context, Routers.webviewShowPage, Navigator.pushNamed(context, Routers.webviewShowPage, arguments: {
arguments: {
"url": XSConstantMacro.privacyPolicyURL, "url": XSConstantMacro.privacyPolicyURL,
"title": '隐私政策'.tr "title": '隐私政策'.tr
}); });
@ -151,8 +131,7 @@ class _AboutPageState extends State<AboutPage> {
isHaveLine: false, isHaveLine: false,
isHaveDirection: true, isHaveDirection: true,
action: () { action: () {
Navigator.pushNamed(context, Routers.webviewShowPage, Navigator.pushNamed(context, Routers.webviewShowPage, arguments: {
arguments: {
"url": XSConstantMacro.collectionListURL, "url": XSConstantMacro.collectionListURL,
"title": '个人信息收集清单'.tr "title": '个人信息收集清单'.tr
}); });
@ -164,14 +143,13 @@ class _AboutPageState extends State<AboutPage> {
endIndent: 20.w, endIndent: 20.w,
), ),
CommonItem( CommonItem(
leftTitel: TranslationLoader leftTitel:
.lanKeys!.applicationPermissionDescription!.tr, TranslationLoader.lanKeys!.applicationPermissionDescription!.tr,
rightTitle: "", rightTitle: "",
isHaveLine: false, isHaveLine: false,
isHaveDirection: true, isHaveDirection: true,
action: () { action: () {
Navigator.pushNamed(context, Routers.webviewShowPage, Navigator.pushNamed(context, Routers.webviewShowPage, arguments: {
arguments: {
"url": XSConstantMacro.appPermissionDescURL, "url": XSConstantMacro.appPermissionDescURL,
"title": '应用权限说明'.tr "title": '应用权限说明'.tr
}); });
@ -183,19 +161,72 @@ class _AboutPageState extends State<AboutPage> {
endIndent: 20.w, endIndent: 20.w,
), ),
CommonItem( CommonItem(
leftTitel: TranslationLoader leftTitel:
.lanKeys!.thirdPartyInformationSharingList!.tr, TranslationLoader.lanKeys!.thirdPartyInformationSharingList!.tr,
rightTitle: "", rightTitle: "",
isHaveLine: false, isHaveLine: false,
isHaveDirection: true, isHaveDirection: true,
action: () { action: () {
Navigator.pushNamed(context, Routers.webviewShowPage, Navigator.pushNamed(context, Routers.webviewShowPage, arguments: {
arguments: {
"url": XSConstantMacro.thirdPartyInfShareListURL, "url": XSConstantMacro.thirdPartyInfShareListURL,
"title": '第三方信息共享清单'.tr "title": '第三方信息共享清单'.tr
}); });
}), }),
], ],
);
view = F.sw(
defaultCall: () => view,
xhjCall: () => Container(
margin: EdgeInsets.only(top: 20.h, left: 20.w, right: 20.w),
decoration: BoxDecoration(
color: Colors.white,
borderRadius: BorderRadius.all(Radius.circular(20.r))),
child: ClipRRect(
borderRadius: BorderRadius.circular(20.r),
child: view,
),
));
return view;
}
//
Widget logoView() {
return GetBuilder<AboutConsole>(builder: (AboutConsole logic) {
return Padding(
padding: EdgeInsets.only(top: 70.h, bottom: 60.h),
child: Column(
children: [
Align(
alignment: Alignment.topRight,
child: GestureDetector(
onTap: logic.handleTap,
child: Container(
color: Colors.transparent,
width: 80.w,
height: 80.h,
),
),
),
ClipRRect(
borderRadius: BorderRadius.circular(20.r),
child: Image.asset(
F.sw(
defaultCall: () => "images/icon_main_1024.png",
xhjCall: () => "images/icon_main_xhj_1024.png"),
width: 160.w,
height: 160.w),
),
SizedBox(height: 20.h),
Text(
"${F.title} $version+$buildNumber",
style: TextStyle(fontSize: 24.sp, color: AppColors.blackColor),
),
SizedBox(height: 20.h),
Text(
F.apiPrefix,
style: TextStyle(fontSize: 24.sp, color: AppColors.blackColor),
),
],
), ),
); );
}); });