mirror of
https://github.com/KRTirtho/spotube.git
synced 2025-09-13 16:05:18 +00:00
chore: fix not closing player
This commit is contained in:
parent
d645f607ac
commit
0f6d0a44ea
@ -95,9 +95,8 @@ class PlayerView extends HookConsumerWidget {
|
|||||||
final topPadding = MediaQueryData.fromView(View.of(context)).padding.top;
|
final topPadding = MediaQueryData.fromView(View.of(context)).padding.top;
|
||||||
|
|
||||||
return PopScope(
|
return PopScope(
|
||||||
canPop: panelController.isPanelOpen,
|
canPop: false,
|
||||||
onPopInvoked: (canPop) async {
|
onPopInvoked: (didPop) async {
|
||||||
if (!canPop) return;
|
|
||||||
panelController.close();
|
panelController.close();
|
||||||
},
|
},
|
||||||
child: IconTheme(
|
child: IconTheme(
|
||||||
|
Loading…
Reference in New Issue
Block a user