mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2024-12-22 19:49:22 +00:00
minor fixes
This commit is contained in:
parent
a7837d2014
commit
5cb2478370
2 changed files with 22 additions and 23 deletions
|
@ -46,29 +46,27 @@ class OrderDetailsPageBodyState extends State<OrderDetailsPageBody> {
|
|||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return Observer(builder: (_) {
|
||||
return SectionStandardList(
|
||||
sectionCount: 1,
|
||||
itemCounter: (int _) => orderDetailsViewModel.items.length,
|
||||
itemBuilder: (__, index) {
|
||||
final item = orderDetailsViewModel.items[index];
|
||||
return SectionStandardList(
|
||||
sectionCount: 1,
|
||||
itemCounter: (int _) => orderDetailsViewModel.items.length,
|
||||
itemBuilder: (__, index) {
|
||||
final item = orderDetailsViewModel.items[index];
|
||||
|
||||
if (item is TrackTradeListItem) {
|
||||
return GestureDetector(
|
||||
onTap: item.onTap,
|
||||
child: ListRow(
|
||||
title: '${item.title}', value: '${item.value}'));
|
||||
} else {
|
||||
return GestureDetector(
|
||||
onTap: () {
|
||||
Clipboard.setData(ClipboardData(text: '${item.value}'));
|
||||
showBar<void>(context, S.of(context).copied_to_clipboard);
|
||||
},
|
||||
child: ListRow(
|
||||
title: '${item.title}', value: '${item.value}'));
|
||||
}
|
||||
});
|
||||
});
|
||||
if (item is TrackTradeListItem) {
|
||||
return GestureDetector(
|
||||
onTap: item.onTap,
|
||||
child: ListRow(
|
||||
title: '${item.title}', value: '${item.value}'));
|
||||
} else {
|
||||
return GestureDetector(
|
||||
onTap: () {
|
||||
Clipboard.setData(ClipboardData(text: '${item.value}'));
|
||||
showBar<void>(context, S.of(context).copied_to_clipboard);
|
||||
},
|
||||
child: ListRow(
|
||||
title: '${item.title}', value: '${item.value}'));
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
}
|
|
@ -46,7 +46,8 @@ abstract class BuyViewModelBase with Store {
|
|||
bool isBuyAction = this.isBuyAction ?? true;
|
||||
|
||||
final formattedCryptoCurrency =
|
||||
cryptoCurrency != null ? CryptoCurrency.fromString(cryptoCurrency) : null;
|
||||
cryptoCurrency != null && cryptoCurrency.isNotEmpty
|
||||
? CryptoCurrency.fromString(cryptoCurrency) : null;
|
||||
|
||||
final orderData = {
|
||||
'id': orderId,
|
||||
|
|
Loading…
Reference in a new issue