mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2025-01-10 21:04:53 +00:00
Update dashboard_page.dart
This commit is contained in:
parent
d9d9e3d4c1
commit
bc0b50af5e
1 changed files with 12 additions and 12 deletions
|
@ -171,18 +171,7 @@ class DashboardPage extends BasePage {
|
||||||
final walletType = walletViewModel.type;
|
final walletType = walletViewModel.type;
|
||||||
|
|
||||||
switch (walletType) {
|
switch (walletType) {
|
||||||
case WalletType.bitcoin:
|
case WalletType.monero:
|
||||||
try {
|
|
||||||
walletViewModel.isRunningWebView = true;
|
|
||||||
final url = await walletViewModel.wyreViewModel.wyreUrl;
|
|
||||||
await Navigator.of(context).pushNamed(Routes.wyre, arguments: url);
|
|
||||||
walletViewModel.isRunningWebView = false;
|
|
||||||
} catch(e) {
|
|
||||||
print(e.toString());
|
|
||||||
walletViewModel.isRunningWebView = false;
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
default:
|
|
||||||
await showPopUp<void>(
|
await showPopUp<void>(
|
||||||
context: context,
|
context: context,
|
||||||
builder: (BuildContext context) {
|
builder: (BuildContext context) {
|
||||||
|
@ -193,6 +182,17 @@ class DashboardPage extends BasePage {
|
||||||
buttonAction: () => Navigator.of(context).pop());
|
buttonAction: () => Navigator.of(context).pop());
|
||||||
});
|
});
|
||||||
break;
|
break;
|
||||||
|
default:
|
||||||
|
try {
|
||||||
|
walletViewModel.isRunningWebView = true;
|
||||||
|
final url = await walletViewModel.wyreViewModel.wyreUrl;
|
||||||
|
await Navigator.of(context).pushNamed(Routes.wyre, arguments: url);
|
||||||
|
walletViewModel.isRunningWebView = false;
|
||||||
|
} catch(e) {
|
||||||
|
print(e.toString());
|
||||||
|
walletViewModel.isRunningWebView = false;
|
||||||
|
}
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue