diff --git a/lib/models/contact_address_entry.dart b/lib/models/contact_address_entry.dart index 98e4a4cd9..ce85228b6 100644 --- a/lib/models/contact_address_entry.dart +++ b/lib/models/contact_address_entry.dart @@ -6,22 +6,26 @@ class ContactAddressEntry { final Coin coin; final String address; final String label; + final String? other; const ContactAddressEntry({ required this.coin, required this.address, required this.label, + this.other, }); ContactAddressEntry copyWith({ Coin? coin, String? address, String? label, + String? other, }) { return ContactAddressEntry( coin: coin ?? this.coin, address: address ?? this.address, label: label ?? this.label, + other: other ?? this.other, ); } @@ -30,6 +34,7 @@ class ContactAddressEntry { coin: Coin.values.byName(jsonObject["coin"] as String), address: jsonObject["address"] as String, label: jsonObject["label"] as String, + other: jsonObject["other"] as String?, ); } @@ -38,6 +43,7 @@ class ContactAddressEntry { "label": label, "address": address, "coin": coin.name, + "other": other ?? "", }; } diff --git a/lib/pages/address_book_views/address_book_view.dart b/lib/pages/address_book_views/address_book_view.dart index 4b7faaaeb..3266d5986 100644 --- a/lib/pages/address_book_views/address_book_view.dart +++ b/lib/pages/address_book_views/address_book_view.dart @@ -73,6 +73,7 @@ class _AddressBookViewState extends ConsumerState { coin: manager.coin, address: await manager.currentReceivingAddress, label: "Current Receiving", + other: manager.walletName, ), ); } diff --git a/lib/pages/address_book_views/subviews/contact_popup.dart b/lib/pages/address_book_views/subviews/contact_popup.dart index 25f259c58..f433a85b7 100644 --- a/lib/pages/address_book_views/subviews/contact_popup.dart +++ b/lib/pages/address_book_views/subviews/contact_popup.dart @@ -208,6 +208,16 @@ class ContactPopUp extends ConsumerWidget { crossAxisAlignment: CrossAxisAlignment.start, children: [ + if (contact.id == "default") + Text( + e.other!, + style: + STextStyles.itemSubtitle12, + ), + if (contact.id == "default") + const SizedBox( + height: 2, + ), Text( "${e.label} (${e.coin.ticker})", style: STextStyles.itemSubtitle12,