mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2025-01-09 20:29:57 +00:00
Merge pull request #582 from cypherstack/nano_icon
rearrange coin order
This commit is contained in:
commit
d5b82ff515
2 changed files with 8 additions and 3 deletions
|
@ -88,7 +88,12 @@ class Wallets extends ChangeNotifier {
|
||||||
result.add(Tuple2(coin, map[coin]!));
|
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;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
|
@ -31,8 +31,9 @@ import 'package:stackwallet/services/coins/wownero/wownero_wallet.dart' as wow;
|
||||||
import 'package:stackwallet/utilities/constants.dart';
|
import 'package:stackwallet/utilities/constants.dart';
|
||||||
|
|
||||||
enum Coin {
|
enum Coin {
|
||||||
banano,
|
|
||||||
bitcoin,
|
bitcoin,
|
||||||
|
monero,
|
||||||
|
banano,
|
||||||
bitcoincash,
|
bitcoincash,
|
||||||
dogecoin,
|
dogecoin,
|
||||||
eCash,
|
eCash,
|
||||||
|
@ -40,7 +41,6 @@ enum Coin {
|
||||||
ethereum,
|
ethereum,
|
||||||
firo,
|
firo,
|
||||||
litecoin,
|
litecoin,
|
||||||
monero,
|
|
||||||
namecoin,
|
namecoin,
|
||||||
nano,
|
nano,
|
||||||
particl,
|
particl,
|
||||||
|
|
Loading…
Reference in a new issue