mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-11-16 17:27:39 +00:00
add chan persona images
This commit is contained in:
parent
788d1f5205
commit
95f16ec250
6 changed files with 70 additions and 28 deletions
BIN
assets/images/chan-persona-easy.png
Normal file
BIN
assets/images/chan-persona-easy.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 493 KiB |
BIN
assets/images/chan-persona-incognito.png
Normal file
BIN
assets/images/chan-persona-incognito.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 480 KiB |
|
@ -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/pages_desktop_specific/password/create_password_view.dart';
|
||||||
import 'package:stackwallet/providers/global/prefs_provider.dart';
|
import 'package:stackwallet/providers/global/prefs_provider.dart';
|
||||||
import 'package:stackwallet/providers/global/price_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/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';
|
||||||
|
@ -308,6 +310,10 @@ class _PrivacyToggleState extends ConsumerState<PrivacyToggle> {
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
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(
|
return Row(
|
||||||
children: [
|
children: [
|
||||||
Expanded(
|
Expanded(
|
||||||
|
@ -344,19 +350,15 @@ class _PrivacyToggleState extends ConsumerState<PrivacyToggle> {
|
||||||
Column(
|
Column(
|
||||||
crossAxisAlignment: CrossAxisAlignment.stretch,
|
crossAxisAlignment: CrossAxisAlignment.stretch,
|
||||||
children: [
|
children: [
|
||||||
// if (isDesktop)
|
(lightChan || darkChan)
|
||||||
// const SizedBox(
|
? Image(
|
||||||
// height: 10,
|
image: AssetImage(Assets.png.chanEasy),
|
||||||
// ),
|
)
|
||||||
SvgPicture.asset(
|
: SvgPicture.asset(
|
||||||
Assets.svg.personaEasy(context),
|
Assets.svg.personaEasy(context),
|
||||||
width: 140,
|
width: 140,
|
||||||
height: 140,
|
height: 140,
|
||||||
),
|
),
|
||||||
// if (isDesktop)
|
|
||||||
// const SizedBox(
|
|
||||||
// height: 12,
|
|
||||||
// ),
|
|
||||||
Center(
|
Center(
|
||||||
child: Text(
|
child: Text(
|
||||||
"Easy Crypto",
|
"Easy Crypto",
|
||||||
|
@ -453,11 +455,20 @@ class _PrivacyToggleState extends ConsumerState<PrivacyToggle> {
|
||||||
const SizedBox(
|
const SizedBox(
|
||||||
height: 10,
|
height: 10,
|
||||||
),
|
),
|
||||||
SvgPicture.asset(
|
(lightChan || darkChan)
|
||||||
|
? Image(
|
||||||
|
image: AssetImage(Assets.png.chanIncognito),
|
||||||
|
)
|
||||||
|
: SvgPicture.asset(
|
||||||
Assets.svg.personaIncognito(context),
|
Assets.svg.personaIncognito(context),
|
||||||
width: 140,
|
width: 140,
|
||||||
height: 140,
|
height: 140,
|
||||||
),
|
),
|
||||||
|
// SvgPicture.asset(
|
||||||
|
// Assets.svg.personaIncognito(context),
|
||||||
|
// width: 140,
|
||||||
|
// height: 140,
|
||||||
|
// ),
|
||||||
if (isDesktop)
|
if (isDesktop)
|
||||||
const SizedBox(
|
const SizedBox(
|
||||||
height: 12,
|
height: 12,
|
||||||
|
|
|
@ -6,10 +6,12 @@ import 'package:flutter_svg/svg.dart';
|
||||||
import 'package:stackwallet/db/hive/db.dart';
|
import 'package:stackwallet/db/hive/db.dart';
|
||||||
import 'package:stackwallet/providers/global/prefs_provider.dart';
|
import 'package:stackwallet/providers/global/prefs_provider.dart';
|
||||||
import 'package:stackwallet/providers/global/price_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/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/desktop/desktop_dialog.dart';
|
import 'package:stackwallet/widgets/desktop/desktop_dialog.dart';
|
||||||
|
@ -224,6 +226,10 @@ class _PrivacyToggleState extends ConsumerState<PrivacyToggle> {
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
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(
|
return Row(
|
||||||
children: [
|
children: [
|
||||||
Expanded(
|
Expanded(
|
||||||
|
@ -265,7 +271,16 @@ class _PrivacyToggleState extends ConsumerState<PrivacyToggle> {
|
||||||
const SizedBox(
|
const SizedBox(
|
||||||
height: 10,
|
height: 10,
|
||||||
),
|
),
|
||||||
SvgPicture.asset(
|
//
|
||||||
|
(lightChan || darkChan)
|
||||||
|
? Image(
|
||||||
|
image: AssetImage(
|
||||||
|
Assets.png.chanEasy,
|
||||||
|
),
|
||||||
|
width: 120,
|
||||||
|
height: 120,
|
||||||
|
)
|
||||||
|
: SvgPicture.asset(
|
||||||
Assets.svg.personaEasy(context),
|
Assets.svg.personaEasy(context),
|
||||||
width: 120,
|
width: 120,
|
||||||
height: 120,
|
height: 120,
|
||||||
|
@ -371,11 +386,22 @@ class _PrivacyToggleState extends ConsumerState<PrivacyToggle> {
|
||||||
const SizedBox(
|
const SizedBox(
|
||||||
height: 10,
|
height: 10,
|
||||||
),
|
),
|
||||||
SvgPicture.asset(
|
(lightChan || darkChan)
|
||||||
|
? Image(
|
||||||
|
image: AssetImage(Assets.png.chanIncognito),
|
||||||
|
width: 120,
|
||||||
|
height: 120,
|
||||||
|
)
|
||||||
|
: SvgPicture.asset(
|
||||||
Assets.svg.personaIncognito(context),
|
Assets.svg.personaIncognito(context),
|
||||||
width: 120,
|
width: 120,
|
||||||
height: 120,
|
height: 120,
|
||||||
),
|
),
|
||||||
|
// SvgPicture.asset(
|
||||||
|
// Assets.svg.personaIncognito(context),
|
||||||
|
// width: 120,
|
||||||
|
// height: 120,
|
||||||
|
// ),
|
||||||
if (isDesktop)
|
if (isDesktop)
|
||||||
const SizedBox(
|
const SizedBox(
|
||||||
height: 12,
|
height: 12,
|
||||||
|
|
|
@ -406,6 +406,9 @@ class _PNG {
|
||||||
|
|
||||||
String get glasses => "assets/images/glasses.png";
|
String get glasses => "assets/images/glasses.png";
|
||||||
String get glassesHidden => "assets/images/glasses-hidden.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 {
|
class _ANIMATIONS {
|
||||||
|
|
|
@ -211,6 +211,8 @@ flutter:
|
||||||
# - images/a_dot_burr.jpeg
|
# - images/a_dot_burr.jpeg
|
||||||
# - images/a_dot_ham.jpeg
|
# - images/a_dot_ham.jpeg
|
||||||
assets:
|
assets:
|
||||||
|
- assets/images/chan-persona-incognito.png
|
||||||
|
- assets/images/chan-persona-easy.png
|
||||||
- assets/images/splash.png
|
- assets/images/splash.png
|
||||||
- assets/icon/icon.png
|
- assets/icon/icon.png
|
||||||
- google_fonts/
|
- google_fonts/
|
||||||
|
|
Loading…
Reference in a new issue