From 5a95fd4ab54a81a85788d7e0823449546ebc4b3e Mon Sep 17 00:00:00 2001 From: Serhii Date: Mon, 27 Mar 2023 10:13:15 +0300 Subject: [PATCH] fix url launcher --- .../unspent_coins/unspent_coins_details_view_model.dart | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/lib/view_model/unspent_coins/unspent_coins_details_view_model.dart b/lib/view_model/unspent_coins/unspent_coins_details_view_model.dart index e43ada6d7..eb874ed31 100644 --- a/lib/view_model/unspent_coins/unspent_coins_details_view_model.dart +++ b/lib/view_model/unspent_coins/unspent_coins_details_view_model.dart @@ -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); + } + ) ]; }