From 26fa41f503c2c31a6976ec828e814908f0b2a8f3 Mon Sep 17 00:00:00 2001 From: nyne Date: Thu, 7 Nov 2024 09:41:14 +0800 Subject: [PATCH] improve translation --- assets/translation.json | 16 ++++++++++++++-- lib/pages/search_page.dart | 3 +++ 2 files changed, 17 insertions(+), 2 deletions(-) diff --git a/assets/translation.json b/assets/translation.json index 47b6225..92f5bb0 100644 --- a/assets/translation.json +++ b/assets/translation.json @@ -173,7 +173,13 @@ "Unselected": "未选择", "Long press and drag to reorder.": "长按并拖动以重新排序。", "Limit image width": "限制图片宽度", - "When using Continuous(Top to Bottom) mode": "当使用连续(从上到下)模式" + "When using Continuous(Top to Bottom) mode": "当使用连续(从上到下)模式", + "Open link": "打开链接", + "Open comic": "打开漫画", + "Move To First": "移动到最前", + "Cancel": "取消", + "Paused": "已暂停", + "Pause": "暂停" }, "zh_TW": { "Home": "首頁", @@ -349,6 +355,12 @@ "Unselected": "未選擇", "Long press and drag to reorder.": "長按並拖動以重新排序。", "Limit image width": "限制圖片寬度", - "When using Continuous(Top to Bottom) mode": "當使用連續(從上到下)模式" + "When using Continuous(Top to Bottom) mode": "當使用連續(從上到下)模式", + "Open link": "打開鏈接", + "Open comic": "打開漫畫", + "Move To First": "移動到最前", + "Cancel": "取消", + "Paused": "已暫停", + "Pause": "暫停" } } \ No newline at end of file diff --git a/lib/pages/search_page.dart b/lib/pages/search_page.dart index c16a61e..6bfc070 100644 --- a/lib/pages/search_page.dart +++ b/lib/pages/search_page.dart @@ -369,6 +369,9 @@ class _SearchPageState extends State { ), trailing: const Icon(Icons.arrow_right), onTap: () { + setState(() { + suggestions.clear(); + }); handleAppLink(Uri.parse(controller.text)); }, );