From 61e9b8715f7117bea80597e12e693af3698aa02c Mon Sep 17 00:00:00 2001 From: julian Date: Wed, 21 Sep 2022 17:32:06 -0600 Subject: [PATCH] long wallet name clipping fix --- lib/widgets/managed_favorite.dart | 45 ++++++++++++++++--------------- 1 file changed, 23 insertions(+), 22 deletions(-) diff --git a/lib/widgets/managed_favorite.dart b/lib/widgets/managed_favorite.dart index 5f0faa568..1a87dcc31 100644 --- a/lib/widgets/managed_favorite.dart +++ b/lib/widgets/managed_favorite.dart @@ -83,29 +83,30 @@ class _ManagedFavoriteCardState extends ConsumerState { const SizedBox( width: 12, ), - Column( - mainAxisAlignment: MainAxisAlignment.spaceBetween, - crossAxisAlignment: CrossAxisAlignment.start, - children: [ - Text( - manager.walletName, - style: STextStyles.titleBold12, - ), - const SizedBox( - height: 2, - ), - Text( - "${Format.localizedStringAsFixed( - value: manager.cachedTotalBalance, - locale: ref.watch(localeServiceChangeNotifierProvider - .select((value) => value.locale)), - decimalPlaces: 8, - )} ${manager.coin.ticker}", - style: STextStyles.itemSubtitle, - ), - ], + Expanded( + child: Column( + mainAxisAlignment: MainAxisAlignment.spaceBetween, + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + Text( + manager.walletName, + style: STextStyles.titleBold12, + ), + const SizedBox( + height: 2, + ), + Text( + "${Format.localizedStringAsFixed( + value: manager.cachedTotalBalance, + locale: ref.watch(localeServiceChangeNotifierProvider + .select((value) => value.locale)), + decimalPlaces: 8, + )} ${manager.coin.ticker}", + style: STextStyles.itemSubtitle, + ), + ], + ), ), - const Spacer(), FavoriteToggle( borderRadius: BorderRadius.circular( Constants.size.circularBorderRadius,