Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 14 additions & 11 deletions lib/views/wallet/wallet_page/common/expandable_coin_list_item.dart
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,19 @@ class _ExpandableCoinListItemState extends State<ExpandableCoinListItem> {
? (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
Expand Down Expand Up @@ -104,17 +117,7 @@ class _ExpandableCoinListItemState extends State<ExpandableCoinListItem> {
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,
);
}

Expand Down
Loading