From 0f6d0a44eac8accfbef6c8940a83ea0c19c92d21 Mon Sep 17 00:00:00 2001 From: Kingkor Roy Tirtho Date: Sat, 30 Dec 2023 23:13:27 +0600 Subject: [PATCH] chore: fix not closing player --- lib/components/player/player.dart | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/components/player/player.dart b/lib/components/player/player.dart index cd89d3e4..33283c3e 100644 --- a/lib/components/player/player.dart +++ b/lib/components/player/player.dart @@ -95,9 +95,8 @@ class PlayerView extends HookConsumerWidget { final topPadding = MediaQueryData.fromView(View.of(context)).padding.top; return PopScope( - canPop: panelController.isPanelOpen, - onPopInvoked: (canPop) async { - if (!canPop) return; + canPop: false, + onPopInvoked: (didPop) async { panelController.close(); }, child: IconTheme(