mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-11-18 02:07:43 +00:00
rearrange coin order
This commit is contained in:
parent
53efdd7657
commit
c4545c3eb0
2 changed files with 8 additions and 3 deletions
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue