mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2025-01-09 12:29:31 +00:00
Check for context first before showing popup
This commit is contained in:
parent
6d7ce369bf
commit
54dab5883f
1 changed files with 3 additions and 1 deletions
|
@ -229,7 +229,8 @@ class DashboardPage extends BasePage {
|
|||
}
|
||||
|
||||
await Future<void>.delayed(Duration(seconds: 1));
|
||||
await showPopUp<void>(
|
||||
if (context.mounted) {
|
||||
await showPopUp<void>(
|
||||
context: context,
|
||||
builder: (BuildContext context) {
|
||||
return AlertWithOneAction(
|
||||
|
@ -239,6 +240,7 @@ class DashboardPage extends BasePage {
|
|||
buttonText: S.of(context).understand,
|
||||
buttonAction: () => Navigator.of(context).pop());
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
var needToPresentYat = false;
|
||||
|
|
Loading…
Reference in a new issue