diff --git a/lib/views/wallet/wallet_page/common/expandable_coin_list_item.dart b/lib/views/wallet/wallet_page/common/expandable_coin_list_item.dart index fd0859e8e0..e0d4d30aa5 100644 --- a/lib/views/wallet/wallet_page/common/expandable_coin_list_item.dart +++ b/lib/views/wallet/wallet_page/common/expandable_coin_list_item.dart @@ -76,6 +76,19 @@ class _ExpandableCoinListItemState extends State { ? (List.of(widget.pubkeys!.keys) ..sort((a, b) => b.balance.spendable.compareTo(a.balance.spendable))) : null; + final children = sortedAddresses != null + ? sortedAddresses + .map( + (pubkey) => _AddressRow( + pubkey: pubkey, + coin: widget.coin, + isSwapAddress: pubkey == sortedAddresses.first, + onTap: widget.onTap, + onCopy: () => copyToClipBoard(context, pubkey.address), + ), + ) + .toList() + : [SkeletonListTile()]; // Match GroupedAssetTickerItem: 16 horizontal, 16 vertical for both (mobile) // For desktop, set vertical padding to achieve 78px height @@ -104,17 +117,7 @@ class _ExpandableCoinListItemState extends State { maintainState: true, childrenDivider: const Divider(height: 1, indent: 16, endIndent: 16), trailing: CoinMoreActionsButton(coin: widget.coin), - children: sortedAddresses - ?.map( - (pubkey) => _AddressRow( - pubkey: pubkey, - coin: widget.coin, - isSwapAddress: pubkey == sortedAddresses.first, - onTap: widget.onTap, - onCopy: () => copyToClipBoard(context, pubkey.address), - ), - ) - .toList(), + children: children, ); }