CAKE-64 | added extra ID to _updateItems() method in the exchange_trade_view_model.dart; added extra_id to string resources

This commit is contained in:
OleksandrSobol
2021-01-11 19:14:53 +02:00
parent 41b436d9d4
commit 580c0d87f0
14 changed files with 67 additions and 14 deletions
@@ -96,9 +96,15 @@ abstract class ExchangeTradeViewModelBase with Store {
void _updateItems() {
items?.clear();
items.add(ExchangeTradeItem(
title: S.current.id, data: '${trade.id}', isCopied: true));
if (trade.extraId != null) {
items.add(ExchangeTradeItem(
title: S.current.extra_id, data: '${trade.extraId}', isCopied: false));
}
items.addAll([
ExchangeTradeItem(
title: S.current.id, data: '${trade.id}', isCopied: true),
ExchangeTradeItem(
title: S.current.amount, data: '${trade.amount}', isCopied: false),
ExchangeTradeItem(