From c2b02b9b8daa3d2e923db0165d29dc563b8447ca Mon Sep 17 00:00:00 2001 From: bggRGjQaUbCoE Date: Fri, 18 Apr 2025 21:23:03 +0800 Subject: [PATCH] opt: search page Signed-off-by: bggRGjQaUbCoE --- lib/pages/search/view.dart | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/lib/pages/search/view.dart b/lib/pages/search/view.dart index 057dc6e9..95121e57 100644 --- a/lib/pages/search/view.dart +++ b/lib/pages/search/view.dart @@ -83,23 +83,25 @@ class _SearchPageState extends State { if (_searchController.searchSuggestion) _searchSuggest(), if (context.orientation == Orientation.portrait) ...[ if (_searchController.enableHotKey) hotSearch(), - _history(), + if (_searchController.recordSearchHistory.value) _history(), if (_searchController.enableSearchRcmd) hotSearch(false) ] else Row( crossAxisAlignment: CrossAxisAlignment.start, children: [ - if (_searchController.enableHotKey) + if (_searchController.enableHotKey || + _searchController.enableSearchRcmd) Expanded( child: Column( children: [ - hotSearch(), + if (_searchController.enableHotKey) hotSearch(), if (_searchController.enableSearchRcmd) hotSearch(false) ], ), ), - Expanded(child: _history()), + if (_searchController.recordSearchHistory.value) + Expanded(child: _history()), ], ), ],