From 440c8af73c9469282c20434bbce90aa793b50203 Mon Sep 17 00:00:00 2001 From: xkeyC <3334969096@qq.com> Date: Sat, 17 Feb 2024 11:35:50 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BA=A4=E4=BA=92=E6=9A=97=E7=A4=BA=20?= =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/ui/home/home_ui.dart | 17 ++++++++++++++--- lib/ui/home/webview/webview.dart | 2 +- 2 files changed, 15 insertions(+), 4 deletions(-) diff --git a/lib/ui/home/home_ui.dart b/lib/ui/home/home_ui.dart index a960e38..25a2b99 100644 --- a/lib/ui/home/home_ui.dart +++ b/lib/ui/home/home_ui.dart @@ -88,7 +88,7 @@ class HomeUI extends BaseUI { height: 260, ), ), - makeGameStatusCard(context, model, 320) + makeGameStatusCard(context, model, 340) ], ), ), @@ -386,6 +386,12 @@ class HomeUI extends BaseUI { overflow: TextOverflow.ellipsis, style: const TextStyle(fontSize: 12.2), ), + ), + const SizedBox(width: 12), + Icon( + FluentIcons.chevron_right, + size: 12, + color: Colors.white.withOpacity(.4), ) ], ), @@ -616,13 +622,18 @@ class HomeUI extends BaseUI { ), ), ), - const SizedBox(width: 3), + const SizedBox(width: 5), Text( "${model.statusCnName[item["name"]] ?? item["name"]}", style: const TextStyle(fontSize: 13), ), ], - ) + ), + Icon( + FluentIcons.chevron_right, + size: 12, + color: Colors.white.withOpacity(.4), + ) ], ) ]), diff --git a/lib/ui/home/webview/webview.dart b/lib/ui/home/webview/webview.dart index c50df55..13489f4 100644 --- a/lib/ui/home/webview/webview.dart +++ b/lib/ui/home/webview/webview.dart @@ -67,7 +67,7 @@ class WebViewModel { webview.isNavigating.addListener(() async { if (!webview.isNavigating.value && localizationResource.isNotEmpty) { dPrint("webview Navigating url === $url"); - if (url.startsWith("https://robertsspaceindustries.com")) { + if (url.contains("robertsspaceindustries.com")) { // SC 官网 dPrint("load script"); await Future.delayed(const Duration(milliseconds: 100));