mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2025-01-23 03:05:11 +00:00
implemented feedback from tester. XMRchain.net is the new monero block explorer of choice. improved human readability and changed order
This commit is contained in:
parent
96c150bafa
commit
630fd4f236
1 changed files with 14 additions and 5 deletions
|
@ -15,6 +15,14 @@ import 'package:url_launcher/url_launcher.dart';
|
||||||
|
|
||||||
import 'package:hive/hive.dart';
|
import 'package:hive/hive.dart';
|
||||||
|
|
||||||
|
String blockExplorerName(String inputName) {
|
||||||
|
if (inputName.contains("xmrchain")) {
|
||||||
|
return "XMRChain.net";
|
||||||
|
} else {
|
||||||
|
return "Blockchain.com";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
class TransactionDetailsPage extends BasePage {
|
class TransactionDetailsPage extends BasePage {
|
||||||
TransactionDetailsPage(this.transactionInfo, bool showRecipientAddress,
|
TransactionDetailsPage(this.transactionInfo, bool showRecipientAddress,
|
||||||
Box<TransactionDescription> transactionDescriptionBox)
|
Box<TransactionDescription> transactionDescriptionBox)
|
||||||
|
@ -34,10 +42,10 @@ class TransactionDetailsPage extends BasePage {
|
||||||
StandartListItem(
|
StandartListItem(
|
||||||
title: S.current.transaction_details_amount,
|
title: S.current.transaction_details_amount,
|
||||||
value: tx.amountFormatted()),
|
value: tx.amountFormatted()),
|
||||||
|
StandartListItem(title: S.current.send_fee, value: tx.feeFormatted()),
|
||||||
StandartListItem(
|
StandartListItem(
|
||||||
title: "View in Block Explorer",
|
title: "View in Block Explorer",
|
||||||
value: "https://localmonero.co/blocks/search/${tx.id}"),
|
value: "https://xmrchain.net/search?value=${tx.id}")
|
||||||
StandartListItem(title: S.current.send_fee, value: tx.feeFormatted())
|
|
||||||
];
|
];
|
||||||
|
|
||||||
if (showRecipientAddress) {
|
if (showRecipientAddress) {
|
||||||
|
@ -110,7 +118,7 @@ class TransactionDetailsPage extends BasePage {
|
||||||
final item = _items[index];
|
final item = _items[index];
|
||||||
final isFinalBlockExplorerItem =
|
final isFinalBlockExplorerItem =
|
||||||
index == _items.length - 1 ? true : false;
|
index == _items.length - 1 ? true : false;
|
||||||
if (isFinalBlockExplorerItem == true) {
|
if (isFinalBlockExplorerItem == false) {
|
||||||
return GestureDetector(
|
return GestureDetector(
|
||||||
onTap: () {
|
onTap: () {
|
||||||
Clipboard.setData(ClipboardData(text: item.value));
|
Clipboard.setData(ClipboardData(text: item.value));
|
||||||
|
@ -119,7 +127,7 @@ class TransactionDetailsPage extends BasePage {
|
||||||
},
|
},
|
||||||
child: StandartListRow(
|
child: StandartListRow(
|
||||||
title: '${item.title}:',
|
title: '${item.title}:',
|
||||||
value: "",
|
value: item.value,
|
||||||
isDrawBottom: isFinalBlockExplorerItem),
|
isDrawBottom: isFinalBlockExplorerItem),
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
|
@ -129,7 +137,8 @@ class TransactionDetailsPage extends BasePage {
|
||||||
},
|
},
|
||||||
child: StandartListRow(
|
child: StandartListRow(
|
||||||
title: '${item.title}:',
|
title: '${item.title}:',
|
||||||
value: item.value,
|
value:
|
||||||
|
"View transaction on ${blockExplorerName(item.value)}",
|
||||||
isDrawBottom: isFinalBlockExplorerItem),
|
isDrawBottom: isFinalBlockExplorerItem),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue