opt iOS ScrollPhysics

Signed-off-by: dom <githubaccount56556@proton.me>
This commit is contained in:
dom
2026-07-21 22:37:51 +08:00
parent 43843ca721
commit be07cafb54
14 changed files with 119 additions and 28 deletions

View File

@@ -1,3 +1,5 @@
import 'package:PiliPlus/common/widgets/scroll_physics.dart'
show platformClampingPhysics;
import 'package:PiliPlus/models/common/super_chat_type.dart';
import 'package:PiliPlus/pages/live_room/controller.dart';
import 'package:PiliPlus/pages/live_room/superchat/superchat_card.dart';
@@ -32,7 +34,7 @@ class _SuperChatPanelState extends DebounceStreamState<SuperChatPanel, bool>
() => ListView.separated(
key: const PageStorageKey(_SuperChatPanelState),
padding: const EdgeInsets.symmetric(horizontal: 12),
physics: const ClampingScrollPhysics(),
physics: platformClampingPhysics,
itemCount: widget.controller.superChatMsg.length,
findItemIndexCallback: (key) {
final index = widget.controller.superChatMsg.indexWhere(