fix(player): preserve lyrics state while switching to queue

This commit is contained in:
zarzet committed 2026-09-26 04:09:47 +07:00
1 parent 6d03a8797b
commit 0aaef057cd
3 files changed
+65 -6

No files matched your search

+12 -3
View File
@@ -1240,11 +1240,20 @@ class _NowPlayingScreenState extends ConsumerState<NowPlayingScreen> {
Stack(
fit: StackFit.expand,
children: [
for (final child in previousChildren)
// Preserve each panel's parent and key when
// it becomes outgoing, including lyric scroll.
for (final child in [
...previousChildren,
?currentChild,
])
IgnorePointer(
child: ExcludeSemantics(child: child),
key: child.key,
ignoring: child != currentChild,
child: ExcludeSemantics(
excluding: child != currentChild,
child: child,
),
),
?currentChild,
],
),
// Keep the outgoing panel until it fades out;