mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-11-17 09:47:37 +00:00
xmr/wow loading fix when opened from fav card
This commit is contained in:
parent
a42e5278a9
commit
4b5386236a
1 changed files with 19 additions and 14 deletions
|
@ -105,14 +105,18 @@ class _FavoriteCardState extends ConsumerState<FavoriteCard> {
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
child: GestureDetector(
|
child: GestureDetector(
|
||||||
onTap: () {
|
onTap: () async {
|
||||||
|
if (coin == Coin.monero || coin == Coin.wownero) {
|
||||||
|
await ref.read(managerProvider).initializeExisting();
|
||||||
|
}
|
||||||
|
if (mounted) {
|
||||||
if (Util.isDesktop) {
|
if (Util.isDesktop) {
|
||||||
Navigator.of(context).pushNamed(
|
await Navigator.of(context).pushNamed(
|
||||||
DesktopWalletView.routeName,
|
DesktopWalletView.routeName,
|
||||||
arguments: walletId,
|
arguments: walletId,
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
Navigator.of(context).pushNamed(
|
await Navigator.of(context).pushNamed(
|
||||||
WalletView.routeName,
|
WalletView.routeName,
|
||||||
arguments: Tuple2(
|
arguments: Tuple2(
|
||||||
walletId,
|
walletId,
|
||||||
|
@ -120,6 +124,7 @@ class _FavoriteCardState extends ConsumerState<FavoriteCard> {
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
child: SizedBox(
|
child: SizedBox(
|
||||||
width: widget.width,
|
width: widget.width,
|
||||||
|
|
Loading…
Reference in a new issue