opt scroll physics

Signed-off-by: dom <githubaccount56556@proton.me>
This commit is contained in:
dom
2026-06-20 13:31:28 +08:00
parent 452b54d124
commit 480bdffdaa
59 changed files with 210 additions and 195 deletions

View File

@@ -52,9 +52,11 @@ class _DynamicsTabPageState extends State<DynamicsTabPage>
return controller.onRefresh();
},
child: CustomScrollView(
key: widget.dynamicsType == .all
? null
: PageStorageKey(widget.dynamicsType),
key: switch (widget.dynamicsType) {
.all => null,
.up => PageStorageKey('${widget.dynamicsType}${controller.flag}'),
_ => PageStorageKey(widget.dynamicsType),
},
physics: ReloadScrollPhysics(controller: controller),
controller: controller.scrollController,
slivers: [