fix: address book tickers overflow

This commit is contained in:
julian 2023-06-08 12:16:47 -06:00
parent 338e354e4b
commit 80ba2a8c5c

View file

@ -137,29 +137,31 @@ class _AddressBookCardState extends ConsumerState<AddressBookCard> {
const SizedBox( const SizedBox(
width: 16, width: 16,
), ),
if (isDesktop && !desktopSendFrom) const Spacer(), Expanded(
if (isDesktop) child: Column(
Text( crossAxisAlignment: isDesktop && !desktopSendFrom
coinsString, ? CrossAxisAlignment.end
style: STextStyles.label(context), : CrossAxisAlignment.start,
),
if (!isDesktop)
Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [ children: [
if (!isDesktop)
Text( Text(
contact.name, contact.name,
style: STextStyles.itemSubtitle12(context), style: STextStyles.itemSubtitle12(context),
), ),
if (!isDesktop)
const SizedBox( const SizedBox(
height: 4, height: 4,
), ),
Text( Text(
coinsString, coinsString,
style: STextStyles.label(context), style: STextStyles.label(context),
textAlign: isDesktop && !desktopSendFrom
? TextAlign.right
: TextAlign.left,
), ),
], ],
), ),
),
if (isDesktop && desktopSendFrom) const Spacer(), if (isDesktop && desktopSendFrom) const Spacer(),
if (isDesktop && desktopSendFrom) if (isDesktop && desktopSendFrom)
SvgPicture.asset( SvgPicture.asset(