fix: correctly pop page in PopScope

This commit is contained in:
Tien Do Nam
2023-12-05 00:10:14 +01:00
parent bcddf40eea
commit cac7aaa46d
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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(
+1 -1
View File
@@ -86,7 +86,7 @@ class _WebSendPageState extends State<WebSendPage> with Refena {
await _revertServerState();
await sleepAsync(250);
if (mounted) {
context.pop();
context.popUntilRoot();
}
},
child: Scaffold(