mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-12-22 19:39:22 +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.monero &&
|
||||
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)
|
||||
? SvgPicture.asset(
|
||||
Assets.svg.imageFor(coin: coin, context: context),
|
||||
|
|
|
@ -1,19 +1,26 @@
|
|||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_riverpod/flutter_riverpod.dart';
|
||||
import 'package:flutter_svg/svg.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/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';
|
||||
|
||||
class EmptyWallets extends StatelessWidget {
|
||||
class EmptyWallets extends ConsumerWidget {
|
||||
const EmptyWallets({Key? key}) : super(key: key);
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
Widget build(BuildContext context, WidgetRef ref) {
|
||||
debugPrint("BUILD: $runtimeType");
|
||||
|
||||
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(
|
||||
child: Padding(
|
||||
|
@ -29,12 +36,21 @@ class EmptyWallets extends StatelessWidget {
|
|||
const Spacer(
|
||||
flex: 2,
|
||||
),
|
||||
Image(
|
||||
image: AssetImage(
|
||||
Assets.png.stack(context),
|
||||
),
|
||||
width: isDesktop ? 324 : MediaQuery.of(context).size.width / 3,
|
||||
),
|
||||
(isSorbet || isForest)
|
||||
? SvgPicture.asset(
|
||||
Assets.svg.stack(context),
|
||||
width: isDesktop
|
||||
? 324
|
||||
: MediaQuery.of(context).size.width / 3,
|
||||
)
|
||||
: Image(
|
||||
image: AssetImage(
|
||||
Assets.png.stack(context),
|
||||
),
|
||||
width: isDesktop
|
||||
? 324
|
||||
: MediaQuery.of(context).size.width / 3,
|
||||
),
|
||||
SizedBox(
|
||||
height: isDesktop ? 30 : 16,
|
||||
),
|
||||
|
|
|
@ -99,6 +99,9 @@ class _SVG {
|
|||
String personaEasy(BuildContext context) =>
|
||||
"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 themeForest => "assets/svg/forest-theme.svg";
|
||||
String get themeOledBlack => "assets/svg/oled-black-theme.svg";
|
||||
|
|
|
@ -365,6 +365,7 @@ flutter:
|
|||
- assets/images/fruitSorbet/namecoin.png
|
||||
# - assets/images/fruitSorbet/particl.png
|
||||
|
||||
- assets/images/fruitSorbet/stack.svg
|
||||
- assets/images/fruitSorbet/bitcoin.svg
|
||||
# - assets/images/fruitSorbet/monero.svg
|
||||
- assets/images/fruitSorbet/wownero.svg
|
||||
|
@ -390,6 +391,7 @@ flutter:
|
|||
- assets/images/forest/namecoin.png
|
||||
# - assets/images/forest/particl.png
|
||||
|
||||
- assets/images/forest/stack.svg
|
||||
- assets/images/forest/bitcoin.svg
|
||||
# - assets/images/fruitSorbet/monero.svg
|
||||
- assets/images/forest/wownero.svg
|
||||
|
|
Loading…
Reference in a new issue