@@ -27,6 +27,7 @@ import '../../../../utilities/extensions/extensions.dart';
2727import '../../../../utilities/text_styles.dart' ;
2828import '../../../../wallets/crypto_currency/coins/firo.dart' ;
2929import '../../../../wallets/isar/providers/wallet_info_provider.dart' ;
30+ import '../../../../widgets/hideable_balance.dart' ;
3031import 'desktop_balance_toggle_button.dart' ;
3132
3233class FiroDesktopWalletSummary extends ConsumerStatefulWidget {
@@ -194,10 +195,13 @@ class _Balance extends ConsumerWidget {
194195
195196 @override
196197 Widget build (BuildContext context, WidgetRef ref) {
197- return SelectableText (
198- ref.watch (pAmountFormatter (coin)).format (amount, tokenContract: null ),
199- style: STextStyles .desktopH3 (context),
200- textAlign: TextAlign .end,
198+ return HideableBalance (
199+ iconSize: 24 ,
200+ child: SelectableText (
201+ ref.watch (pAmountFormatter (coin)).format (amount, tokenContract: null ),
202+ style: STextStyles .desktopH3 (context),
203+ textAlign: TextAlign .end,
204+ ),
201205 );
202206 }
203207}
@@ -218,14 +222,17 @@ class _Price extends ConsumerWidget {
218222 Widget build (BuildContext context, WidgetRef ref) {
219223 return Padding (
220224 padding: const EdgeInsets .only (left: 16 ),
221- child: SelectableText (
222- "${Amount .fromDecimal (price * amount .decimal , fractionDigits : 2 ).fiatString (locale : ref .watch (localeServiceChangeNotifierProvider .select ((value ) => value .locale )))} "
223- "${ref .watch (prefsChangeNotifierProvider .select ((value ) => value .currency ))}" ,
224- style: STextStyles .desktopTextExtraSmall (context).copyWith (
225- color: Theme .of (context).extension < StackColors > ()! .textSubtitle1,
225+ child: HideableBalance (
226+ iconColor: Theme .of (context).extension < StackColors > ()! .textSubtitle1,
227+ iconSize: 16 ,
228+ child: SelectableText (
229+ "${Amount .fromDecimal (price * amount .decimal , fractionDigits : 2 ).fiatString (locale : ref .watch (localeServiceChangeNotifierProvider .select ((value ) => value .locale )))} "
230+ "${ref .watch (prefsChangeNotifierProvider .select ((value ) => value .currency ))}" ,
231+ style: STextStyles .desktopTextExtraSmall (context).copyWith (
232+ color: Theme .of (context).extension < StackColors > ()! .textSubtitle1,
233+ ),
234+ textAlign: TextAlign .end,
226235 ),
227-
228- textAlign: TextAlign .end,
229236 ),
230237 );
231238 }
0 commit comments