hide price values on tx card+details view when incognito mode enabled

This commit is contained in:
julian 2022-10-17 16:07:40 -06:00
parent 44523427e0
commit 643e0640c9
2 changed files with 43 additions and 37 deletions
lib
pages/wallet_view/transaction_views
widgets

View file

@ -255,6 +255,8 @@ class _TransactionDetailsViewState
const SizedBox(
height: 2,
),
if (ref.watch(prefsChangeNotifierProvider
.select((value) => value.externalCalls)))
SelectableText(
"${Format.localizedStringAsFixed(value: (coin == Coin.monero ? (amount / 10000.toDecimal()).toDecimal() : coin == Coin.wownero ? (amount / 1000.toDecimal()).toDecimal() : amount) * ref.watch(priceAnd24hChangeNotifierProvider.select((value) => value.getPrice(coin).item1)), locale: ref.watch(
localeServiceChangeNotifierProvider

View file

@ -202,9 +202,13 @@ class _TransactionCardState extends ConsumerState<TransactionCard> {
),
),
),
if (ref.watch(prefsChangeNotifierProvider
.select((value) => value.externalCalls)))
const SizedBox(
width: 10,
),
if (ref.watch(prefsChangeNotifierProvider
.select((value) => value.externalCalls)))
Flexible(
child: FittedBox(
fit: BoxFit.scaleDown,