litecoin namecoin and particl coin images

This commit is contained in:
ryleedavis 2023-03-01 09:37:38 -07:00
parent dba1d23c58
commit 05ffd64e04

View file

@ -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),