opt: search page

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-04-18 21:23:03 +08:00
parent a4e8ea37aa
commit c2b02b9b8d

View File

@@ -83,22 +83,24 @@ class _SearchPageState extends State<SearchPage> {
if (_searchController.searchSuggestion) _searchSuggest(), if (_searchController.searchSuggestion) _searchSuggest(),
if (context.orientation == Orientation.portrait) ...[ if (context.orientation == Orientation.portrait) ...[
if (_searchController.enableHotKey) hotSearch(), if (_searchController.enableHotKey) hotSearch(),
_history(), if (_searchController.recordSearchHistory.value) _history(),
if (_searchController.enableSearchRcmd) hotSearch(false) if (_searchController.enableSearchRcmd) hotSearch(false)
] else ] else
Row( Row(
crossAxisAlignment: CrossAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start,
children: [ children: [
if (_searchController.enableHotKey) if (_searchController.enableHotKey ||
_searchController.enableSearchRcmd)
Expanded( Expanded(
child: Column( child: Column(
children: [ children: [
hotSearch(), if (_searchController.enableHotKey) hotSearch(),
if (_searchController.enableSearchRcmd) if (_searchController.enableSearchRcmd)
hotSearch(false) hotSearch(false)
], ],
), ),
), ),
if (_searchController.recordSearchHistory.value)
Expanded(child: _history()), Expanded(child: _history()),
], ],
), ),