From 82b8eac98962144a0a73163d3d734d39c9e4d8c8 Mon Sep 17 00:00:00 2001 From: nyne Date: Sat, 14 Dec 2024 18:08:54 +0800 Subject: [PATCH] fix #6 --- assets/tr.json | 6 ++++-- lib/pages/search_page.dart | 19 +++++++++++++++++++ 2 files changed, 23 insertions(+), 2 deletions(-) diff --git a/assets/tr.json b/assets/tr.json index d86bf3b..90aeb09 100644 --- a/assets/tr.json +++ b/assets/tr.json @@ -183,7 +183,8 @@ "Related Artworks": "相关作品", "Emphasize artworks from following artists": "强调关注画师的作品", "The border of the artworks will be darker": "作品的边框将被加深", - "Initial Page": "初始页面" + "Initial Page": "初始页面", + "Close the pane to apply the settings": "关闭面板以应用设置" }, "zh_TW": { "Search": "搜索", @@ -369,6 +370,7 @@ "Related Artworks": "相關作品", "Emphasize artworks from following artists": "強調關注畫師的作品", "The border of the artworks will be darker": "作品的邊框將被加深", - "Initial Page": "初始頁面" + "Initial Page": "初始頁面", + "Close the pane to apply the settings": "關閉面板以應用設置" } } \ No newline at end of file diff --git a/lib/pages/search_page.dart b/lib/pages/search_page.dart index ff4497a..145f8f8 100644 --- a/lib/pages/search_page.dart +++ b/lib/pages/search_page.dart @@ -420,6 +420,19 @@ class _SearchSettingsState extends State { })) .toList(), )), + const SizedBox(height: 4), + Center( + child: Row( + mainAxisSize: MainAxisSize.min, + children: [ + const Icon(FluentIcons.info, size: 16), + const SizedBox( + width: 4, + ), + Text("Close the pane to apply the settings".tl) + ], + ), + ), SizedBox( height: context.padding.bottom, ) @@ -457,6 +470,12 @@ class _SearchResultPageState late final controller = TextEditingController(text: widget.keyword); + @override + void reset() { + nextUrl = null; + super.reset(); + } + void search() { if (keyword != oldKeyword) { oldKeyword = keyword;