Merge remote-tracking branch 'origin/ui-fixes' into paynyms

This commit is contained in:
julian 2023-02-10 15:50:02 -06:00
commit 21a0f2384b
17 changed files with 15 additions and 15 deletions

View file

Before

Width:  |  Height:  |  Size: 946 KiB

After

Width:  |  Height:  |  Size: 946 KiB

View file

Before

Width:  |  Height:  |  Size: 539 KiB

After

Width:  |  Height:  |  Size: 539 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 388 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 354 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 861 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 368 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 316 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 322 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 284 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 351 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 335 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 677 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 371 KiB

View file

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

View file

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

View file

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

View file

@ -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);
} }
} }
} }