mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2025-03-22 23:28:48 +00:00
added stack.svg for forest and fruit theme + corrected size
This commit is contained in:
parent
41aaf8dd50
commit
ab412873c9
6 changed files with 31 additions and 674 deletions
File diff suppressed because one or more lines are too long
Before Width: | Height: | Size: 621 KiB After Width: | Height: | Size: 611 KiB |
File diff suppressed because one or more lines are too long
Before Width: | Height: | Size: 59 KiB After Width: | Height: | Size: 48 KiB |
|
@ -27,10 +27,6 @@ class CoinImage extends ConsumerWidget {
|
||||||
coin != Coin.epicCash &&
|
coin != Coin.epicCash &&
|
||||||
coin != Coin.monero &&
|
coin != Coin.monero &&
|
||||||
coin != Coin.namecoin)
|
coin != Coin.namecoin)
|
||||||
// ? SvgPicture.asset(
|
|
||||||
// Assets.svg.imageFor(coin: coin, context: context),
|
|
||||||
// width: isDesktop ? 324 : MediaQuery.of(context).size.width,
|
|
||||||
// )
|
|
||||||
? ((isForest && coin != Coin.litecoin && coin != Coin.dogecoin)
|
? ((isForest && coin != Coin.litecoin && coin != Coin.dogecoin)
|
||||||
? SvgPicture.asset(
|
? SvgPicture.asset(
|
||||||
Assets.svg.imageFor(coin: coin, context: context),
|
Assets.svg.imageFor(coin: coin, context: context),
|
||||||
|
|
|
@ -1,19 +1,26 @@
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
|
import 'package:flutter_riverpod/flutter_riverpod.dart';
|
||||||
import 'package:flutter_svg/svg.dart';
|
import 'package:flutter_svg/svg.dart';
|
||||||
import 'package:stackwallet/pages/add_wallet_views/add_wallet_view/add_wallet_view.dart';
|
import 'package:stackwallet/pages/add_wallet_views/add_wallet_view/add_wallet_view.dart';
|
||||||
|
import 'package:stackwallet/providers/ui/color_theme_provider.dart';
|
||||||
import 'package:stackwallet/utilities/assets.dart';
|
import 'package:stackwallet/utilities/assets.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';
|
||||||
|
|
||||||
class EmptyWallets extends StatelessWidget {
|
class EmptyWallets extends ConsumerWidget {
|
||||||
const EmptyWallets({Key? key}) : super(key: key);
|
const EmptyWallets({Key? key}) : super(key: key);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context, WidgetRef ref) {
|
||||||
debugPrint("BUILD: $runtimeType");
|
debugPrint("BUILD: $runtimeType");
|
||||||
|
|
||||||
final isDesktop = Util.isDesktop;
|
final isDesktop = Util.isDesktop;
|
||||||
|
final bool isSorbet = ref.read(colorThemeProvider.state).state.themeType ==
|
||||||
|
ThemeType.fruitSorbet;
|
||||||
|
final bool isForest =
|
||||||
|
ref.read(colorThemeProvider.state).state.themeType == ThemeType.forest;
|
||||||
|
|
||||||
return SafeArea(
|
return SafeArea(
|
||||||
child: Padding(
|
child: Padding(
|
||||||
|
@ -29,11 +36,20 @@ class EmptyWallets extends StatelessWidget {
|
||||||
const Spacer(
|
const Spacer(
|
||||||
flex: 2,
|
flex: 2,
|
||||||
),
|
),
|
||||||
Image(
|
(isSorbet || isForest)
|
||||||
|
? SvgPicture.asset(
|
||||||
|
Assets.svg.stack(context),
|
||||||
|
width: isDesktop
|
||||||
|
? 324
|
||||||
|
: MediaQuery.of(context).size.width / 3,
|
||||||
|
)
|
||||||
|
: Image(
|
||||||
image: AssetImage(
|
image: AssetImage(
|
||||||
Assets.png.stack(context),
|
Assets.png.stack(context),
|
||||||
),
|
),
|
||||||
width: isDesktop ? 324 : MediaQuery.of(context).size.width / 3,
|
width: isDesktop
|
||||||
|
? 324
|
||||||
|
: MediaQuery.of(context).size.width / 3,
|
||||||
),
|
),
|
||||||
SizedBox(
|
SizedBox(
|
||||||
height: isDesktop ? 30 : 16,
|
height: isDesktop ? 30 : 16,
|
||||||
|
|
|
@ -99,6 +99,9 @@ class _SVG {
|
||||||
String personaEasy(BuildContext context) =>
|
String personaEasy(BuildContext context) =>
|
||||||
"assets/svg/${Theme.of(context).extension<StackColors>()!.themeType.name}/persona-easy-1.svg";
|
"assets/svg/${Theme.of(context).extension<StackColors>()!.themeType.name}/persona-easy-1.svg";
|
||||||
|
|
||||||
|
String stack(BuildContext context) =>
|
||||||
|
"assets/images/${Theme.of(context).extension<StackColors>()!.themeType.name}/stack.svg";
|
||||||
|
|
||||||
String get themeFruit => "assets/svg/fruit-sorbet-theme.svg";
|
String get themeFruit => "assets/svg/fruit-sorbet-theme.svg";
|
||||||
String get themeForest => "assets/svg/forest-theme.svg";
|
String get themeForest => "assets/svg/forest-theme.svg";
|
||||||
String get themeOledBlack => "assets/svg/oled-black-theme.svg";
|
String get themeOledBlack => "assets/svg/oled-black-theme.svg";
|
||||||
|
|
|
@ -365,6 +365,7 @@ flutter:
|
||||||
- assets/images/fruitSorbet/namecoin.png
|
- assets/images/fruitSorbet/namecoin.png
|
||||||
# - assets/images/fruitSorbet/particl.png
|
# - assets/images/fruitSorbet/particl.png
|
||||||
|
|
||||||
|
- assets/images/fruitSorbet/stack.svg
|
||||||
- assets/images/fruitSorbet/bitcoin.svg
|
- assets/images/fruitSorbet/bitcoin.svg
|
||||||
# - assets/images/fruitSorbet/monero.svg
|
# - assets/images/fruitSorbet/monero.svg
|
||||||
- assets/images/fruitSorbet/wownero.svg
|
- assets/images/fruitSorbet/wownero.svg
|
||||||
|
@ -390,6 +391,7 @@ flutter:
|
||||||
- assets/images/forest/namecoin.png
|
- assets/images/forest/namecoin.png
|
||||||
# - assets/images/forest/particl.png
|
# - assets/images/forest/particl.png
|
||||||
|
|
||||||
|
- assets/images/forest/stack.svg
|
||||||
- assets/images/forest/bitcoin.svg
|
- assets/images/forest/bitcoin.svg
|
||||||
# - assets/images/fruitSorbet/monero.svg
|
# - assets/images/fruitSorbet/monero.svg
|
||||||
- assets/images/forest/wownero.svg
|
- assets/images/forest/wownero.svg
|
||||||
|
|
Loading…
Reference in a new issue