fix: back press gesture blocked

fix: portrait player state issue
closes #49
This commit is contained in:
2025-06-05 11:26:49 +01:00
parent 0d8ce78009
commit 5ffab5f7bf
3 changed files with 22 additions and 20 deletions

View File

@ -139,17 +139,13 @@ class _LivePage extends State<LivePage>
Widget build(BuildContext context) {
final mq = MediaQuery.of(context);
return PopScope(
canPop: false,
canPop: !_streaming,
onPopInvokedWithResult: (didPop, result) async {
if (_streaming) {
if (_streaming && !didPop) {
final go = await showExitStreamDialog(context);
if (context.mounted) {
if (go == true) {
context.go("/");
}
if (context.mounted && go == true) {
context.go("/");
}
} else {
context.go("/");
}
},
child: ValueListenableBuilder(