mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2024-11-17 09:47:35 +00:00
optimized code
This commit is contained in:
parent
1f401421ea
commit
c05c2e7c29
1 changed files with 6 additions and 4 deletions
|
@ -91,12 +91,14 @@ abstract class TradeDetailsViewModelBase with Store {
|
|||
value: trade.provider.toString()));
|
||||
}
|
||||
|
||||
if (trade.provider.title == "ChangeNOW") {
|
||||
if (trade.provider is ChangeNowExchangeProvider) {
|
||||
final buildURL =
|
||||
'https://changenow.io/exchange/txs/${trade.id.toString()}';
|
||||
items.add(TrackTradeListItem(
|
||||
title: "Track",
|
||||
value: "https://changenow.io/exchange/txs/${trade.id.toString()}",
|
||||
title: 'Track',
|
||||
value: buildURL,
|
||||
onTap: () {
|
||||
launch("https://changenow.io/exchange/txs/${trade.id.toString()}");
|
||||
launch(buildURL);
|
||||
}));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue