mirror of
https://github.com/Such-Software/hash-wallet.git
synced 2026-10-18 05:51:34 +02:00
fix swap id cutting off for some providers (#3141)
This commit is contained in:
@@ -202,9 +202,19 @@ class SwapTransactionDetails extends StatelessWidget {
|
||||
label: exchangeTradeViewModel.trade.provider.title,
|
||||
iconPath: exchangeTradeViewModel.trade.provider.image,
|
||||
trailingIconPath: "assets/new-ui/copy.svg",
|
||||
trailingText: exchangeTradeViewModel.trade.id,
|
||||
truncateTrailingText:
|
||||
!exchangeTradeViewModel.trade.provider.isCentralized),
|
||||
trailingText: exchangeTradeViewModel.trade.id.toString().length > 18
|
||||
? null
|
||||
: exchangeTradeViewModel.trade.id,
|
||||
bottomWidget: exchangeTradeViewModel.trade.id.toString().length <= 18
|
||||
? null
|
||||
: Padding(
|
||||
padding: const EdgeInsets.only(top: 12.0),
|
||||
child: Text(
|
||||
exchangeTradeViewModel.trade.id,
|
||||
style: TextStyle(
|
||||
color: Theme.of(context).colorScheme.onSurfaceVariant),
|
||||
),
|
||||
)),
|
||||
if (exchangeTradeViewModel.trade.provider ==
|
||||
ExchangeProviderDescription.trocador)
|
||||
ListItemRegularRow(
|
||||
|
||||
Reference in New Issue
Block a user