Merge pull request #582 from cypherstack/nano_icon

rearrange coin order
This commit is contained in:
julian-CStack 2023-06-08 11:03:14 -06:00 committed by GitHub
commit d5b82ff515
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 3 deletions

View file

@ -88,7 +88,12 @@ class Wallets extends ChangeNotifier {
result.add(Tuple2(coin, map[coin]!));
}
result.sort((a, b) => a.item1.prettyName.compareTo(b.item1.prettyName));
// result.sort((a, b) => a.item1.prettyName.compareTo(b.item1.prettyName));
result.sort((a, b) => a.item1.prettyName == "Bitcoin"
? -1
: b.item1.prettyName == "Monero"
? 1
: a.item1.prettyName.compareTo(b.item1.prettyName));
return result;
}

View file

@ -31,8 +31,9 @@ import 'package:stackwallet/services/coins/wownero/wownero_wallet.dart' as wow;
import 'package:stackwallet/utilities/constants.dart';
enum Coin {
banano,
bitcoin,
monero,
banano,
bitcoincash,
dogecoin,
eCash,
@ -40,7 +41,6 @@ enum Coin {
ethereum,
firo,
litecoin,
monero,
namecoin,
nano,
particl,