add chan persona images

This commit is contained in:
ryleedavis 2023-04-17 09:56:51 -06:00
parent 788d1f5205
commit 95f16ec250
6 changed files with 70 additions and 28 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 493 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 480 KiB

View file

@ -8,10 +8,12 @@ import 'package:stackwallet/pages/pinpad_views/create_pin_view.dart';
import 'package:stackwallet/pages_desktop_specific/password/create_password_view.dart';
import 'package:stackwallet/providers/global/prefs_provider.dart';
import 'package:stackwallet/providers/global/price_provider.dart';
import 'package:stackwallet/providers/ui/color_theme_provider.dart';
import 'package:stackwallet/services/exchange/exchange_data_loading_service.dart';
import 'package:stackwallet/utilities/assets.dart';
import 'package:stackwallet/utilities/constants.dart';
import 'package:stackwallet/utilities/text_styles.dart';
import 'package:stackwallet/utilities/theme/color_theme.dart';
import 'package:stackwallet/utilities/theme/stack_colors.dart';
import 'package:stackwallet/utilities/util.dart';
import 'package:stackwallet/widgets/conditional_parent.dart';
@ -308,6 +310,10 @@ class _PrivacyToggleState extends ConsumerState<PrivacyToggle> {
@override
Widget build(BuildContext context) {
final bool lightChan =
ref.read(colorThemeProvider.state).state.themeType == ThemeType.chan;
final bool darkChan = ref.read(colorThemeProvider.state).state.themeType ==
ThemeType.darkChans;
return Row(
children: [
Expanded(
@ -344,19 +350,15 @@ class _PrivacyToggleState extends ConsumerState<PrivacyToggle> {
Column(
crossAxisAlignment: CrossAxisAlignment.stretch,
children: [
// if (isDesktop)
// const SizedBox(
// height: 10,
// ),
SvgPicture.asset(
Assets.svg.personaEasy(context),
width: 140,
height: 140,
),
// if (isDesktop)
// const SizedBox(
// height: 12,
// ),
(lightChan || darkChan)
? Image(
image: AssetImage(Assets.png.chanEasy),
)
: SvgPicture.asset(
Assets.svg.personaEasy(context),
width: 140,
height: 140,
),
Center(
child: Text(
"Easy Crypto",
@ -453,11 +455,20 @@ class _PrivacyToggleState extends ConsumerState<PrivacyToggle> {
const SizedBox(
height: 10,
),
SvgPicture.asset(
Assets.svg.personaIncognito(context),
width: 140,
height: 140,
),
(lightChan || darkChan)
? Image(
image: AssetImage(Assets.png.chanIncognito),
)
: SvgPicture.asset(
Assets.svg.personaIncognito(context),
width: 140,
height: 140,
),
// SvgPicture.asset(
// Assets.svg.personaIncognito(context),
// width: 140,
// height: 140,
// ),
if (isDesktop)
const SizedBox(
height: 12,

View file

@ -6,10 +6,12 @@ import 'package:flutter_svg/svg.dart';
import 'package:stackwallet/db/hive/db.dart';
import 'package:stackwallet/providers/global/prefs_provider.dart';
import 'package:stackwallet/providers/global/price_provider.dart';
import 'package:stackwallet/providers/ui/color_theme_provider.dart';
import 'package:stackwallet/services/exchange/exchange_data_loading_service.dart';
import 'package:stackwallet/utilities/assets.dart';
import 'package:stackwallet/utilities/constants.dart';
import 'package:stackwallet/utilities/text_styles.dart';
import 'package:stackwallet/utilities/theme/color_theme.dart';
import 'package:stackwallet/utilities/theme/stack_colors.dart';
import 'package:stackwallet/utilities/util.dart';
import 'package:stackwallet/widgets/desktop/desktop_dialog.dart';
@ -224,6 +226,10 @@ class _PrivacyToggleState extends ConsumerState<PrivacyToggle> {
@override
Widget build(BuildContext context) {
final bool lightChan =
ref.read(colorThemeProvider.state).state.themeType == ThemeType.chan;
final bool darkChan = ref.read(colorThemeProvider.state).state.themeType ==
ThemeType.darkChans;
return Row(
children: [
Expanded(
@ -265,11 +271,20 @@ class _PrivacyToggleState extends ConsumerState<PrivacyToggle> {
const SizedBox(
height: 10,
),
SvgPicture.asset(
Assets.svg.personaEasy(context),
width: 120,
height: 120,
),
//
(lightChan || darkChan)
? Image(
image: AssetImage(
Assets.png.chanEasy,
),
width: 120,
height: 120,
)
: SvgPicture.asset(
Assets.svg.personaEasy(context),
width: 120,
height: 120,
),
if (isDesktop)
const SizedBox(
height: 12,
@ -371,11 +386,22 @@ class _PrivacyToggleState extends ConsumerState<PrivacyToggle> {
const SizedBox(
height: 10,
),
SvgPicture.asset(
Assets.svg.personaIncognito(context),
width: 120,
height: 120,
),
(lightChan || darkChan)
? Image(
image: AssetImage(Assets.png.chanIncognito),
width: 120,
height: 120,
)
: SvgPicture.asset(
Assets.svg.personaIncognito(context),
width: 120,
height: 120,
),
// SvgPicture.asset(
// Assets.svg.personaIncognito(context),
// width: 120,
// height: 120,
// ),
if (isDesktop)
const SizedBox(
height: 12,

View file

@ -406,6 +406,9 @@ class _PNG {
String get glasses => "assets/images/glasses.png";
String get glassesHidden => "assets/images/glasses-hidden.png";
String get chanEasy => "assets/images/chan-persona-easy.png";
String get chanIncognito => "assets/images/chan-persona-incognito.png";
}
class _ANIMATIONS {

View file

@ -211,6 +211,8 @@ flutter:
# - images/a_dot_burr.jpeg
# - images/a_dot_ham.jpeg
assets:
- assets/images/chan-persona-incognito.png
- assets/images/chan-persona-easy.png
- assets/images/splash.png
- assets/icon/icon.png
- google_fonts/