mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2025-01-19 01:04:43 +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++) {
|
||||
final wallet = syncingWallets[i];
|
||||
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;
|
||||
try {
|
||||
final blocksLeft = (wallet.syncStatus as SyncingSyncStatus).blocksLeft;
|
||||
content = "${blocksLeft} Blocks Left";
|
||||
} catch (e) {
|
||||
print(e);
|
||||
content = "${wallet.name} ${syncProgress}% Synced";
|
||||
content = "${syncProgress}% Synced";
|
||||
}
|
||||
content += " - ${DateTime.now()}";
|
||||
|
||||
|
|
Loading…
Reference in a new issue