交互暗示 优化

This commit is contained in:
xkeyC 2024-02-17 11:35:50 +08:00
parent 4f3dc05667
commit 440c8af73c
2 changed files with 15 additions and 4 deletions

View File

@ -88,7 +88,7 @@ class HomeUI extends BaseUI<HomeUIModel> {
height: 260, height: 260,
), ),
), ),
makeGameStatusCard(context, model, 320) makeGameStatusCard(context, model, 340)
], ],
), ),
), ),
@ -386,6 +386,12 @@ class HomeUI extends BaseUI<HomeUIModel> {
overflow: TextOverflow.ellipsis, overflow: TextOverflow.ellipsis,
style: const TextStyle(fontSize: 12.2), style: const TextStyle(fontSize: 12.2),
), ),
),
const SizedBox(width: 12),
Icon(
FluentIcons.chevron_right,
size: 12,
color: Colors.white.withOpacity(.4),
) )
], ],
), ),
@ -616,12 +622,17 @@ class HomeUI extends BaseUI<HomeUIModel> {
), ),
), ),
), ),
const SizedBox(width: 3), const SizedBox(width: 5),
Text( Text(
"${model.statusCnName[item["name"]] ?? item["name"]}", "${model.statusCnName[item["name"]] ?? item["name"]}",
style: const TextStyle(fontSize: 13), style: const TextStyle(fontSize: 13),
), ),
], ],
),
Icon(
FluentIcons.chevron_right,
size: 12,
color: Colors.white.withOpacity(.4),
) )
], ],
) )

View File

@ -67,7 +67,7 @@ class WebViewModel {
webview.isNavigating.addListener(() async { webview.isNavigating.addListener(() async {
if (!webview.isNavigating.value && localizationResource.isNotEmpty) { if (!webview.isNavigating.value && localizationResource.isNotEmpty) {
dPrint("webview Navigating url === $url"); dPrint("webview Navigating url === $url");
if (url.startsWith("https://robertsspaceindustries.com")) { if (url.contains("robertsspaceindustries.com")) {
// SC // SC
dPrint("load script"); dPrint("load script");
await Future.delayed(const Duration(milliseconds: 100)); await Future.delayed(const Duration(milliseconds: 100));