feat: 热搜词跳转直播
This commit is contained in:
@ -115,8 +115,8 @@ class _SearchPageState extends State<SearchPage> with RouteAware {
|
||||
customBorder: RoundedRectangleBorder(
|
||||
borderRadius: BorderRadius.circular(4),
|
||||
),
|
||||
onTap: () => ssCtr
|
||||
.onClickKeyword(ssCtr.searchSuggestList[index].term!),
|
||||
onTap: () => ssCtr.onClickKeyword(
|
||||
ssCtr.searchSuggestList[index].term!, null),
|
||||
child: Padding(
|
||||
padding: const EdgeInsets.only(left: 20, top: 9, bottom: 9),
|
||||
child: ssCtr.searchSuggestList[index].textRich,
|
||||
@ -178,11 +178,11 @@ class _SearchPageState extends State<SearchPage> with RouteAware {
|
||||
width: width,
|
||||
// ignore: invalid_use_of_protected_member
|
||||
hotSearchList: _searchController.hotSearchList.value,
|
||||
onClick: (keyword) async {
|
||||
onClick: (keyword, item) async {
|
||||
_searchController.searchFocusNode.unfocus();
|
||||
await Future.delayed(
|
||||
const Duration(milliseconds: 150));
|
||||
_searchController.onClickKeyword(keyword);
|
||||
_searchController.onClickKeyword(keyword, item);
|
||||
},
|
||||
),
|
||||
);
|
||||
@ -193,7 +193,6 @@ class _SearchPageState extends State<SearchPage> with RouteAware {
|
||||
);
|
||||
}
|
||||
} else {
|
||||
// 缓存数据
|
||||
return const SizedBox();
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user