mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-06-01 00:28:18 +08:00
@@ -30,7 +30,7 @@ class _SuperChatPanelState extends DebounceStreamState<SuperChatPanel, bool>
|
||||
super.build(context);
|
||||
return Obx(
|
||||
() => ListView.separated(
|
||||
key: const PageStorageKey('live-sc'),
|
||||
key: const PageStorageKey(_SuperChatPanelState),
|
||||
padding: const EdgeInsets.symmetric(horizontal: 12),
|
||||
physics: const ClampingScrollPhysics(),
|
||||
itemCount: widget.controller.superChatMsg.length,
|
||||
|
||||
@@ -1050,6 +1050,7 @@ class _LiveDanmakuState extends State<LiveDanmaku> {
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
final option = DanmakuOptions.get(notFullscreen: widget.notFullscreen);
|
||||
return Obx(
|
||||
() => AnimatedOpacity(
|
||||
opacity: plPlayerController.enableShowDanmaku.value
|
||||
@@ -1061,7 +1062,7 @@ class _LiveDanmakuState extends State<LiveDanmaku> {
|
||||
widget.liveRoomController.danmakuController =
|
||||
plPlayerController.danmakuController = e;
|
||||
},
|
||||
option: DanmakuOptions.get(notFullscreen: widget.notFullscreen),
|
||||
option: option,
|
||||
size: widget.size,
|
||||
),
|
||||
),
|
||||
|
||||
@@ -49,7 +49,7 @@ class LiveRoomChatPanel extends StatelessWidget {
|
||||
children: [
|
||||
Obx(
|
||||
() => ListView.separated(
|
||||
key: const PageStorageKey('live-chat'),
|
||||
key: const PageStorageKey(LiveRoomChatPanel),
|
||||
padding: const EdgeInsets.symmetric(horizontal: 12),
|
||||
controller: liveRoomController.scrollController,
|
||||
separatorBuilder: (_, _) => const SizedBox(height: 8),
|
||||
|
||||
Reference in New Issue
Block a user