WIP assets change

This commit is contained in:
julian-CStack 2023-04-24 08:38:17 -06:00
parent ec00f6aea4
commit 3a94972ab3
2 changed files with 12 additions and 2 deletions

View file

@ -13,6 +13,7 @@ import 'package:stackwallet/pages/wallets_view/wallets_view.dart';
import 'package:stackwallet/providers/global/notifications_provider.dart';
import 'package:stackwallet/providers/ui/home_view_index_provider.dart';
import 'package:stackwallet/providers/ui/unread_notifications_provider.dart';
import 'package:stackwallet/themes/theme_providers.dart';
import 'package:stackwallet/utilities/assets.dart';
import 'package:stackwallet/utilities/constants.dart';
import 'package:stackwallet/utilities/text_styles.dart';
@ -200,7 +201,11 @@ class _HomeViewState extends ConsumerState<HomeView> {
icon: SvgPicture.asset(
ref.watch(notificationsProvider
.select((value) => value.hasUnreadNotifications))
? Assets.svg.bellNew(context)
? ref.watch(
themeProvider.select(
(value) => value.assets.bellNew,
),
)
: Assets.svg.bell,
width: 20,
height: 20,

View file

@ -37,6 +37,7 @@ import 'package:stackwallet/services/event_bus/events/global/wallet_sync_status_
import 'package:stackwallet/services/event_bus/global_event_bus.dart';
import 'package:stackwallet/services/exchange/exchange_data_loading_service.dart';
import 'package:stackwallet/services/mixins/paynym_wallet_interface.dart';
import 'package:stackwallet/themes/theme_providers.dart';
import 'package:stackwallet/utilities/amount/amount.dart';
import 'package:stackwallet/utilities/assets.dart';
import 'package:stackwallet/utilities/clipboard_interface.dart';
@ -516,7 +517,11 @@ class _WalletViewState extends ConsumerState<WalletView> {
icon: SvgPicture.asset(
ref.watch(notificationsProvider.select((value) =>
value.hasUnreadNotificationsFor(walletId)))
? Assets.svg.bellNew(context)
? ref.watch(
themeProvider.select(
(value) => value.assets.bellNew,
),
)
: Assets.svg.bell,
width: 20,
height: 20,