Skip to content
Open
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
27 changes: 27 additions & 0 deletions lib/pages/coin_control/utxo_card.dart
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,16 @@ class _UtxoCardState extends ConsumerState<UtxoCard> {
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(
Expand Down Expand Up @@ -179,6 +189,23 @@ class _UtxoCardState extends ConsumerState<UtxoCard> {
),
],
),
if (addressLabel != null &&
addressLabel.value.isNotEmpty)
Row(
children: [
Flexible(
child: Text(
addressLabel.value,
style:
STextStyles.w500_12(context).copyWith(
color: Theme.of(context)
.extension<StackColors>()!
.textSubtitle1,
),
),
),
],
),
],
),
),
Expand Down
Loading