From 80ba2a8c5ca8a9d81cc3da514d6716aa63119dfb Mon Sep 17 00:00:00 2001 From: julian Date: Thu, 8 Jun 2023 12:16:47 -0600 Subject: [PATCH] fix: address book tickers overflow --- lib/widgets/address_book_card.dart | 34 ++++++++++++++++-------------- 1 file changed, 18 insertions(+), 16 deletions(-) diff --git a/lib/widgets/address_book_card.dart b/lib/widgets/address_book_card.dart index 7d78075a3..fed6deb03 100644 --- a/lib/widgets/address_book_card.dart +++ b/lib/widgets/address_book_card.dart @@ -137,29 +137,31 @@ class _AddressBookCardState extends ConsumerState { const SizedBox( width: 16, ), - if (isDesktop && !desktopSendFrom) const Spacer(), - if (isDesktop) - Text( - coinsString, - style: STextStyles.label(context), - ), - if (!isDesktop) - Column( - crossAxisAlignment: CrossAxisAlignment.start, + Expanded( + child: Column( + crossAxisAlignment: isDesktop && !desktopSendFrom + ? CrossAxisAlignment.end + : CrossAxisAlignment.start, children: [ - Text( - contact.name, - style: STextStyles.itemSubtitle12(context), - ), - const SizedBox( - height: 4, - ), + if (!isDesktop) + Text( + contact.name, + style: STextStyles.itemSubtitle12(context), + ), + if (!isDesktop) + const SizedBox( + height: 4, + ), Text( coinsString, style: STextStyles.label(context), + textAlign: isDesktop && !desktopSendFrom + ? TextAlign.right + : TextAlign.left, ), ], ), + ), if (isDesktop && desktopSendFrom) const Spacer(), if (isDesktop && desktopSendFrom) SvgPicture.asset(