replace stack images

This commit is contained in:
ryleedavis 2023-04-25 16:09:45 -06:00
parent 68ad1dfb2b
commit aa07ba639b
2 changed files with 10 additions and 3 deletions

View file

@ -5,7 +5,6 @@ import 'package:flutter_svg/svg.dart';
import 'package:stackwallet/pages/stack_privacy_calls.dart'; import 'package:stackwallet/pages/stack_privacy_calls.dart';
import 'package:stackwallet/pages_desktop_specific/password/create_password_view.dart'; import 'package:stackwallet/pages_desktop_specific/password/create_password_view.dart';
import 'package:stackwallet/themes/theme_providers.dart'; import 'package:stackwallet/themes/theme_providers.dart';
import 'package:stackwallet/utilities/assets.dart';
import 'package:stackwallet/utilities/prefs.dart'; import 'package:stackwallet/utilities/prefs.dart';
import 'package:stackwallet/utilities/text_styles.dart'; import 'package:stackwallet/utilities/text_styles.dart';
import 'package:stackwallet/utilities/theme/stack_colors.dart'; import 'package:stackwallet/utilities/theme/stack_colors.dart';
@ -55,7 +54,11 @@ class _IntroViewState extends ConsumerState<IntroView> {
maxWidth: 300, maxWidth: 300,
), ),
child: SvgPicture.asset( child: SvgPicture.asset(
Assets.svg.stack(context), ref.watch(
themeProvider.select(
(value) => value.assets.stack,
),
),
width: isDesktop ? 324 : 266, width: isDesktop ? 324 : 266,
height: isDesktop ? 324 : 266, height: isDesktop ? 324 : 266,
), ),

View file

@ -39,7 +39,11 @@ class EmptyWallets extends ConsumerWidget {
flex: 2, flex: 2,
), ),
SvgPicture.asset( SvgPicture.asset(
Assets.svg.stack(context), ref.watch(
themeProvider.select(
(value) => value.assets.stack,
),
),
width: isDesktop ? 324 : MediaQuery.of(context).size.width / 3, width: isDesktop ? 324 : MediaQuery.of(context).size.width / 3,
), ),
SizedBox( SizedBox(