persona-easy/incognito pngs for fruitSorbet and oceanBreeze theme

This commit is contained in:
ryleedavis 2023-02-14 12:59:34 -07:00
parent c37ec4fb81
commit c5e3a0ddb6
2 changed files with 34 additions and 32 deletions

View file

@ -12,6 +12,7 @@ import 'package:stackwallet/services/exchange/exchange_data_loading_service.dart
import 'package:stackwallet/utilities/assets.dart'; import 'package:stackwallet/utilities/assets.dart';
import 'package:stackwallet/utilities/constants.dart'; import 'package:stackwallet/utilities/constants.dart';
import 'package:stackwallet/utilities/text_styles.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/theme/stack_colors.dart';
import 'package:stackwallet/utilities/util.dart'; import 'package:stackwallet/utilities/util.dart';
import 'package:stackwallet/widgets/conditional_parent.dart'; import 'package:stackwallet/widgets/conditional_parent.dart';
@ -299,12 +300,16 @@ class _PrivacyToggleState extends ConsumerState<PrivacyToggle> {
late bool externalCallsEnabled; late bool externalCallsEnabled;
late final bool isDesktop; late final bool isDesktop;
late final bool usePNG; late final bool isSorbet;
late final bool isOcean;
@override @override
void initState() { void initState() {
isDesktop = Util.isDesktop; isDesktop = Util.isDesktop;
usePNG = ref.read(colorThemeProvider.state).state == "fruitSorbet"; isSorbet = ref.read(colorThemeProvider.state).state.themeType ==
ThemeType.fruitSorbet;
isOcean = ref.read(colorThemeProvider.state).state.themeType ==
ThemeType.oceanBreeze;
// initial toggle state // initial toggle state
externalCallsEnabled = widget.externalCallsEnabled; externalCallsEnabled = widget.externalCallsEnabled;
super.initState(); super.initState();
@ -348,22 +353,25 @@ class _PrivacyToggleState extends ConsumerState<PrivacyToggle> {
Column( Column(
crossAxisAlignment: CrossAxisAlignment.stretch, crossAxisAlignment: CrossAxisAlignment.stretch,
children: [ children: [
if (isDesktop) // if (isDesktop)
const SizedBox( // const SizedBox(
height: 10, // height: 10,
), // ),
// Image.asset( (isSorbet || isOcean)
// // Assets.png.personaEasy, ? Image.asset(
// ), Assets.png.personaEasy(context),
SvgPicture.asset( width: 140,
Assets.svg.personaEasy(context), height: 140,
width: isDesktop ? 120 : 140, )
height: isDesktop ? 120 : 140, : SvgPicture.asset(
), Assets.svg.personaEasy(context),
if (isDesktop) width: 140,
const SizedBox( height: 140,
height: 12, ),
), // if (isDesktop)
// const SizedBox(
// height: 12,
// ),
Center( Center(
child: Text( child: Text(
"Easy Crypto", "Easy Crypto",

View file

@ -269,14 +269,10 @@ class _PrivacyToggleState extends ConsumerState<PrivacyToggle> {
Column( Column(
crossAxisAlignment: CrossAxisAlignment.stretch, crossAxisAlignment: CrossAxisAlignment.stretch,
children: [ children: [
// if (isDesktop) if (isDesktop)
// const SizedBox( const SizedBox(
// height: 10, height: 10,
// ), ),
// if (isDesktop)
// const SizedBox(
// height: 12,
// ),
(isSorbet || isOcean) (isSorbet || isOcean)
? Image.asset( ? Image.asset(
Assets.png.personaEasy(context), Assets.png.personaEasy(context),
@ -288,12 +284,10 @@ class _PrivacyToggleState extends ConsumerState<PrivacyToggle> {
width: 120, width: 120,
height: 120, height: 120,
), ),
// if (!isSorbet || !isOcean) if (isDesktop)
// SvgPicture.asset( const SizedBox(
// Assets.svg.personaEasy(context), height: 12,
// width: 120, ),
// height: 120,
// ),
Center( Center(
child: Text( child: Text(
"Easy Crypto", "Easy Crypto",