From b36adb349a2078de6e615c7c3a40f07efa0930a7 Mon Sep 17 00:00:00 2001 From: sneurlax Date: Sun, 1 Mar 2026 19:34:44 -0600 Subject: [PATCH] feat: show address labels in coin control UTXO cards closes #403 --- lib/pages/coin_control/utxo_card.dart | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/lib/pages/coin_control/utxo_card.dart b/lib/pages/coin_control/utxo_card.dart index 624b41eee9..0fcb97fbd2 100644 --- a/lib/pages/coin_control/utxo_card.dart +++ b/lib/pages/coin_control/utxo_card.dart @@ -110,6 +110,16 @@ class _UtxoCardState extends ConsumerState { if (snapshot.hasData) { utxo = snapshot.data!; } + final AddressLabel? addressLabel; + if (utxo.address != null) { + addressLabel = MainDB.instance.getAddressLabelSync( + widget.walletId, + utxo.address!, + ); + } else { + addressLabel = null; + } + return Row( children: [ ConditionalParent( @@ -179,6 +189,23 @@ class _UtxoCardState extends ConsumerState { ), ], ), + if (addressLabel != null && + addressLabel.value.isNotEmpty) + Row( + children: [ + Flexible( + child: Text( + addressLabel.value, + style: + STextStyles.w500_12(context).copyWith( + color: Theme.of(context) + .extension()! + .textSubtitle1, + ), + ), + ), + ], + ), ], ), ),