mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-07-26 21:40:11 +08:00
opt iOS ScrollPhysics
Signed-off-by: dom <githubaccount56556@proton.me>
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user