mirror of
https://github.com/KRTirtho/spotube.git
synced 2025-09-13 07:55:18 +00:00
fix(android): system back button in player page exits the app
This commit is contained in:
parent
c3289a0ba4
commit
3294f657fe
@ -94,10 +94,10 @@ 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 WillPopScope(
|
||||||
canPop: false,
|
onWillPop: () async {
|
||||||
onPopInvoked: (didPop) async {
|
await panelController.close();
|
||||||
panelController.close();
|
return false;
|
||||||
},
|
},
|
||||||
child: IconTheme(
|
child: IconTheme(
|
||||||
data: theme.iconTheme.copyWith(color: bodyTextColor),
|
data: theme.iconTheme.copyWith(color: bodyTextColor),
|
||||||
|
Loading…
Reference in New Issue
Block a user