mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2025-03-20 22:28:46 +00:00
minor notification updates
This commit is contained in:
parent
756fb3d0e2
commit
ab3c1497fb
1 changed files with 4 additions and 2 deletions
|
@ -207,14 +207,16 @@ Future<void> onStart(ServiceInstance service) async {
|
||||||
for (int i = 0; i < syncingWallets.length; i++) {
|
for (int i = 0; i < syncingWallets.length; i++) {
|
||||||
final wallet = syncingWallets[i];
|
final wallet = syncingWallets[i];
|
||||||
final syncProgress = ((wallet!.syncStatus.progress()) * 100).toStringAsPrecision(5);
|
final syncProgress = ((wallet!.syncStatus.progress()) * 100).toStringAsPrecision(5);
|
||||||
String title = "${wallet.name} - ${wallet.type}";
|
|
||||||
|
String prefix = walletTypeToCryptoCurrency(wallet.type).title;
|
||||||
|
String title = "$prefix - ${wallet.name}";
|
||||||
late String content;
|
late String content;
|
||||||
try {
|
try {
|
||||||
final blocksLeft = (wallet.syncStatus as SyncingSyncStatus).blocksLeft;
|
final blocksLeft = (wallet.syncStatus as SyncingSyncStatus).blocksLeft;
|
||||||
content = "${blocksLeft} Blocks Left";
|
content = "${blocksLeft} Blocks Left";
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
print(e);
|
print(e);
|
||||||
content = "${wallet.name} ${syncProgress}% Synced";
|
content = "${syncProgress}% Synced";
|
||||||
}
|
}
|
||||||
content += " - ${DateTime.now()}";
|
content += " - ${DateTime.now()}";
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue