mirror of
https://github.com/zarzet/SpotiFLAC-Mobile.git
synced 2026-09-30 13:19:44 +02:00
fix(player): preserve lyrics state while switching to queue
This commit is contained in:
1 parent
6d03a8797b
commit
0aaef057cd
3 files changed
+65
-6
No files matched your search
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user