From a63e2c784ed140d1ba50332ffe186640a10020d4 Mon Sep 17 00:00:00 2001 From: julian Date: Tue, 7 May 2024 11:49:49 -0600 Subject: [PATCH] icon size fix --- .../subviews/contact_popup.dart | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/lib/pages/address_book_views/subviews/contact_popup.dart b/lib/pages/address_book_views/subviews/contact_popup.dart index ca91001c4..ae31f8c09 100644 --- a/lib/pages/address_book_views/subviews/contact_popup.dart +++ b/lib/pages/address_book_views/subviews/contact_popup.dart @@ -29,6 +29,7 @@ import 'package:stackwallet/utilities/assets.dart'; import 'package:stackwallet/utilities/clipboard_interface.dart'; import 'package:stackwallet/utilities/enums/coin_enum.dart'; import 'package:stackwallet/utilities/text_styles.dart'; +import 'package:stackwallet/utilities/util.dart'; import 'package:stackwallet/wallets/isar/providers/wallet_info_provider.dart'; import 'package:stackwallet/widgets/rounded_container.dart'; import 'package:stackwallet/widgets/rounded_white_container.dart'; @@ -39,10 +40,10 @@ final exchangeFromAddressBookAddressStateProvider = class ContactPopUp extends ConsumerWidget { const ContactPopUp({ - Key? key, + super.key, required this.contactId, this.clipboard = const ClipboardWrapper(), - }) : super(key: key); + }); final String contactId; final ClipboardInterface clipboard; @@ -384,13 +385,18 @@ class ContactPopUp extends ConsumerWidget { color: Theme.of(context) .extension()! .textFieldDefaultBG, - padding: - const EdgeInsets.all(4), + padding: EdgeInsets.all( + Util.isDesktop ? 4 : 6, + ), child: SvgPicture.asset( Assets .svg.circleArrowUpRight, - width: 12, - height: 12, + width: Util.isDesktop + ? 12 + : 16, + height: Util.isDesktop + ? 12 + : 16, color: Theme.of(context) .extension< StackColors>()!