mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-11-18 10:11:03 +00:00
40 lines
1.2 KiB
Dart
40 lines
1.2 KiB
Dart
import 'package:flutter_riverpod/flutter_riverpod.dart';
|
|
import 'package:stackwallet/themes/theme_providers.dart';
|
|
import 'package:stackwallet/utilities/enums/coin_enum.dart';
|
|
|
|
final coinImageProvider = Provider.family<String, Coin>((ref, coin) {
|
|
final assets = ref.watch(themeProvider).assets;
|
|
switch (coin) {
|
|
case Coin.bitcoin:
|
|
return assets.bitcoinImage;
|
|
case Coin.litecoin:
|
|
case Coin.litecoinTestNet:
|
|
return assets.litecoinImage;
|
|
case Coin.bitcoincash:
|
|
return assets.bitcoincashImage;
|
|
case Coin.dogecoin:
|
|
return assets.dogecoinImage;
|
|
case Coin.epicCash:
|
|
return assets.epicCashImage;
|
|
case Coin.firo:
|
|
return assets.firoImage;
|
|
case Coin.monero:
|
|
return assets.moneroImage;
|
|
case Coin.wownero:
|
|
return assets.wowneroImage;
|
|
case Coin.namecoin:
|
|
return assets.namecoinImage;
|
|
case Coin.particl:
|
|
return assets.particlImage;
|
|
case Coin.bitcoinTestNet:
|
|
return assets.bitcoinImage;
|
|
case Coin.bitcoincashTestnet:
|
|
return assets.bitcoincashImage;
|
|
case Coin.firoTestNet:
|
|
return assets.firoImage;
|
|
case Coin.dogecoinTestNet:
|
|
return assets.dogecoinImage;
|
|
case Coin.ethereum:
|
|
return assets.ethereumImage;
|
|
}
|
|
});
|