opt: load previous

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-04-04 16:18:18 +08:00
parent cb3e57feec
commit 7fafa88eb7
7 changed files with 35 additions and 16 deletions

View File

@@ -180,7 +180,10 @@ class _HorizontalMemberPageState extends State<HorizontalMemberPage> {
color: Colors.transparent,
child: CustomScrollView(
controller: _controller.scrollController,
physics: const PositionRetainedScrollPhysics(),
physics: PositionRetainedScrollPhysics(
shouldRetain: _controller.hasPrev,
parent: ClampingScrollPhysics(),
),
slivers: [
_buildSliverHeader,
SliverPadding(