mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-12-23 11:59:30 +00:00
litecoin namecoin and particl coin images
This commit is contained in:
parent
dba1d23c58
commit
05ffd64e04
1 changed files with 13 additions and 5 deletions
|
@ -22,20 +22,28 @@ class CoinImage extends ConsumerWidget {
|
||||||
ThemeType.fruitSorbet;
|
ThemeType.fruitSorbet;
|
||||||
final bool isForest =
|
final bool isForest =
|
||||||
ref.read(colorThemeProvider.state).state.themeType == ThemeType.forest;
|
ref.read(colorThemeProvider.state).state.themeType == ThemeType.forest;
|
||||||
|
final bool isOcean = ref.read(colorThemeProvider.state).state.themeType ==
|
||||||
|
ThemeType.oceanBreeze;
|
||||||
|
final bool isOled = ref.read(colorThemeProvider.state).state.themeType ==
|
||||||
|
ThemeType.oledBlack;
|
||||||
|
final bool isLight =
|
||||||
|
ref.read(colorThemeProvider.state).state.themeType == ThemeType.light;
|
||||||
|
final bool isDark =
|
||||||
|
ref.read(colorThemeProvider.state).state.themeType == ThemeType.dark;
|
||||||
|
|
||||||
return ((isSorbet &&
|
return ((isSorbet &&
|
||||||
coin != Coin.epicCash &&
|
coin != Coin.epicCash &&
|
||||||
coin != Coin.monero &&
|
coin != Coin.monero &&
|
||||||
coin != Coin.namecoin) ||
|
coin != Coin.namecoin) ||
|
||||||
(isForest && coin != Coin.dogecoin))
|
(isForest && coin != Coin.dogecoin) ||
|
||||||
|
((isOcean || isOled || isLight || isDark) &&
|
||||||
|
(coin == Coin.litecoin &&
|
||||||
|
coin == Coin.namecoin &&
|
||||||
|
coin == Coin.particl)))
|
||||||
? SvgPicture.asset(
|
? SvgPicture.asset(
|
||||||
Assets.svg.imageFor(coin: coin, context: context),
|
Assets.svg.imageFor(coin: coin, context: context),
|
||||||
width: isDesktop ? 324 : MediaQuery.of(context).size.width,
|
width: isDesktop ? 324 : MediaQuery.of(context).size.width,
|
||||||
)
|
)
|
||||||
// : Image(
|
|
||||||
// image: AssetImage(
|
|
||||||
// Assets.png.imageFor(coin: coin, context: context),
|
|
||||||
// )))
|
|
||||||
: Image(
|
: Image(
|
||||||
image: AssetImage(
|
image: AssetImage(
|
||||||
Assets.png.imageFor(coin: coin, context: context),
|
Assets.png.imageFor(coin: coin, context: context),
|
||||||
|
|
Loading…
Reference in a new issue