fix url launcher

This commit is contained in:
Serhii 2023-03-27 10:13:15 +03:00
parent a0f86df9a6
commit 5a95fd4ab5

View file

@ -54,8 +54,12 @@ abstract class UnspentCoinsDetailsViewModelBase with Store {
BlockExplorerListItem(
title: S.current.view_in_block_explorer,
value: _explorerDescription(unspentCoinsListViewModel.wallet.type),
onTap: () => launch(_explorerUrl(unspentCoinsListViewModel.wallet.type,
unspentCoinsItem.hash)))
onTap: () {
final url = Uri.parse(_explorerUrl(unspentCoinsListViewModel.wallet.type,
unspentCoinsItem.hash));
return launchUrl(url);
}
)
];
}