From 299a64d39b4b780276bb0422f121205ecc87fc06 Mon Sep 17 00:00:00 2001 From: bggRGjQaUbCoE Date: Fri, 4 Oct 2024 08:22:00 +0800 Subject: [PATCH] fix: fav panel --- .../detail/introduction/widgets/fav_panel.dart | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/lib/pages/video/detail/introduction/widgets/fav_panel.dart b/lib/pages/video/detail/introduction/widgets/fav_panel.dart index 6628e596..c70e1b38 100644 --- a/lib/pages/video/detail/introduction/widgets/fav_panel.dart +++ b/lib/pages/video/detail/introduction/widgets/fav_panel.dart @@ -102,14 +102,24 @@ class _FavPanelState extends State { ), ); } else { - return HttpError( - errMsg: data['msg'], - fn: () => setState(() {}), + return CustomScrollView( + controller: widget.scrollController, + slivers: [ + HttpError( + errMsg: data['msg'], + fn: () => setState(() { + _futureBuilderFuture = + widget.ctr!.queryVideoInFolder(); + }), + ) + ], ); } } else { // 骨架屏 - return const Text('请求中'); + return const Center( + child: CircularProgressIndicator(), + ); } }, ),