Skip to content

An open-source cross-platform alternative to AirDrop

fix: correctly pop page in PopScope

Tien Do Namcac7aaa46d61
diff --git a/app/lib/pages/progress_page.dart b/app/lib/pages/progress_page.dart
index e72adf6c..4e84c24c 100644
--- a/app/lib/pages/progress_page.dart
+++ b/app/lib/pages/progress_page.dart
@@ -154,7 +154,7 @@ class _ProgressPageState extends State<ProgressPage> with Refena {
canPop: false,
onPopInvoked: (_) async {
if (await _onWillPop() && mounted) {
- context.pop();
+ context.popUntilRoot();
}
},
child: Scaffold(
diff --git a/app/lib/pages/web_send_page.dart b/app/lib/pages/web_send_page.dart
index 090e11f0..05e38a80 100644
--- a/app/lib/pages/web_send_page.dart
+++ b/app/lib/pages/web_send_page.dart
@@ -86,7 +86,7 @@ class _WebSendPageState extends State<WebSendPage> with Refena {
await _revertServerState();
await sleepAsync(250);
if (mounted) {
- context.pop();
+ context.popUntilRoot();
}
},
child: Scaffold(