fix: search hotword error widget

This commit is contained in:
bggRGjQaUbCoE
2024-08-28 16:24:55 +08:00
parent 9321004698
commit 1abc9633dd
2 changed files with 7 additions and 2 deletions

View File

@@ -189,11 +189,15 @@ class _SearchPageState extends State<SearchPage> with RouteAware {
); );
} else { } else {
return CustomScrollView( return CustomScrollView(
shrinkWrap: true,
slivers: [ slivers: [
HttpError( HttpError(
errMsg: data['msg'], errMsg: data['msg'],
fn: () => setState(() {}), fn: () => setState(() {
) _futureBuilderFuture =
_searchController.queryHotSearchList();
}),
),
], ],
); );
} }

View File

@@ -135,6 +135,7 @@ class _VideoReplyNewDialogState extends State<VideoReplyNewDialog>
@override @override
void dispose() { void dispose() {
_publishStream.close();
WidgetsBinding.instance.removeObserver(this); WidgetsBinding.instance.removeObserver(this);
_replyContentController.dispose(); _replyContentController.dispose();
replyContentFocusNode.removeListener(() {}); replyContentFocusNode.removeListener(() {});