chore: fix not closing player

This commit is contained in:
Kingkor Roy Tirtho 2023-12-30 23:13:27 +06:00
parent d645f607ac
commit 0f6d0a44ea

View File

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