Merge remote-tracking branch 'origin/ui-fixes' into paynyms
Before Width: | Height: | Size: 946 KiB After Width: | Height: | Size: 946 KiB |
Before Width: | Height: | Size: 539 KiB After Width: | Height: | Size: 539 KiB |
BIN
assets/images/oledBlack/bitcoin.png
Normal file
After Width: | Height: | Size: 388 KiB |
BIN
assets/images/oledBlack/bitcoincash.png
Normal file
After Width: | Height: | Size: 354 KiB |
BIN
assets/images/oledBlack/doge.png
Normal file
After Width: | Height: | Size: 861 KiB |
BIN
assets/images/oledBlack/epic-cash.png
Normal file
After Width: | Height: | Size: 368 KiB |
BIN
assets/images/oledBlack/firo.png
Normal file
After Width: | Height: | Size: 316 KiB |
BIN
assets/images/oledBlack/litecoin.png
Normal file
After Width: | Height: | Size: 322 KiB |
BIN
assets/images/oledBlack/monero.png
Normal file
After Width: | Height: | Size: 284 KiB |
BIN
assets/images/oledBlack/namecoin.png
Normal file
After Width: | Height: | Size: 351 KiB |
BIN
assets/images/oledBlack/particl.png
Normal file
After Width: | Height: | Size: 335 KiB |
BIN
assets/images/oledBlack/stack.png
Normal file
After Width: | Height: | Size: 677 KiB |
BIN
assets/images/oledBlack/wownero.png
Normal file
After Width: | Height: | Size: 371 KiB |
|
@ -16,7 +16,7 @@ class CoinImage extends StatelessWidget {
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
return Image(
|
return Image(
|
||||||
image: AssetImage(
|
image: AssetImage(
|
||||||
Assets.png.imageFor(coin: coin),
|
Assets.png.imageFor(coin: coin, context: context),
|
||||||
),
|
),
|
||||||
width: isDesktop ? 324 : MediaQuery.of(context).size.width / 3,
|
width: isDesktop ? 324 : MediaQuery.of(context).size.width / 3,
|
||||||
);
|
);
|
||||||
|
|
|
@ -167,7 +167,7 @@ class _NameYourWalletViewState extends ConsumerState<NameYourWalletView> {
|
||||||
if (!isDesktop)
|
if (!isDesktop)
|
||||||
Image(
|
Image(
|
||||||
image: AssetImage(
|
image: AssetImage(
|
||||||
Assets.png.imageFor(coin: coin),
|
Assets.png.imageFor(coin: coin, context: context),
|
||||||
),
|
),
|
||||||
height: 100,
|
height: 100,
|
||||||
),
|
),
|
||||||
|
|
|
@ -284,7 +284,7 @@ class _RestoreOptionsViewState extends ConsumerState<RestoreOptionsView> {
|
||||||
if (!isDesktop)
|
if (!isDesktop)
|
||||||
Image(
|
Image(
|
||||||
image: AssetImage(
|
image: AssetImage(
|
||||||
Assets.png.imageFor(coin: coin),
|
Assets.png.imageFor(coin: coin, context: context),
|
||||||
),
|
),
|
||||||
height: 100,
|
height: 100,
|
||||||
),
|
),
|
||||||
|
|
|
@ -296,34 +296,34 @@ 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 Function(BuildContext context) imageFor({required Coin coin}) {
|
String imageFor({required BuildContext context, required Coin coin}) {
|
||||||
switch (coin) {
|
switch (coin) {
|
||||||
case Coin.bitcoin:
|
case Coin.bitcoin:
|
||||||
case Coin.bitcoinTestNet:
|
case Coin.bitcoinTestNet:
|
||||||
return bitcoin;
|
return bitcoin(context);
|
||||||
case Coin.litecoin:
|
case Coin.litecoin:
|
||||||
case Coin.litecoinTestNet:
|
case Coin.litecoinTestNet:
|
||||||
return litecoin;
|
return litecoin(context);
|
||||||
case Coin.bitcoincash:
|
case Coin.bitcoincash:
|
||||||
case Coin.bitcoincashTestnet:
|
case Coin.bitcoincashTestnet:
|
||||||
return bitcoincash;
|
return bitcoincash(context);
|
||||||
case Coin.dogecoin:
|
case Coin.dogecoin:
|
||||||
case Coin.dogecoinTestNet:
|
case Coin.dogecoinTestNet:
|
||||||
return dogecoin;
|
return dogecoin(context);
|
||||||
case Coin.epicCash:
|
case Coin.epicCash:
|
||||||
return epicCash;
|
return epicCash(context);
|
||||||
case Coin.firo:
|
case Coin.firo:
|
||||||
return firo;
|
return firo(context);
|
||||||
case Coin.firoTestNet:
|
case Coin.firoTestNet:
|
||||||
return firo;
|
return firo(context);
|
||||||
case Coin.monero:
|
case Coin.monero:
|
||||||
return monero;
|
return monero(context);
|
||||||
case Coin.wownero:
|
case Coin.wownero:
|
||||||
return wownero;
|
return wownero(context);
|
||||||
case Coin.namecoin:
|
case Coin.namecoin:
|
||||||
return namecoin;
|
return namecoin(context);
|
||||||
case Coin.particl:
|
case Coin.particl:
|
||||||
return particl;
|
return particl(context);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|