Signed-off-by: dom <githubaccount56556@proton.me>
This commit is contained in:
dom
2026-01-23 19:50:11 +08:00
parent 7eaf05839a
commit 0ab07a713e
22 changed files with 443 additions and 470 deletions

View File

@@ -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,

View File

@@ -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,
),
),

View File

@@ -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),