mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2025-04-07 15:07:28 +00:00
minor fix
This commit is contained in:
parent
5d7db4e5b1
commit
91f4904e4a
1 changed files with 2 additions and 2 deletions
|
@ -152,12 +152,12 @@ Future<void> onStart(ServiceInstance service) async {
|
|||
_syncTimer?.cancel();
|
||||
_syncTimer = Timer.periodic(const Duration(milliseconds: 1500), (timer) {
|
||||
// final wallet = getIt.get<AppStore>().wallet;
|
||||
final wallet = syncingWallets.first;
|
||||
final wallet = syncingWallets.first!;
|
||||
final syncProgress = ((wallet?.syncStatus.progress() ?? 0) * 100).toStringAsPrecision(5);
|
||||
|
||||
flutterLocalNotificationsPlugin.show(
|
||||
notificationId,
|
||||
"${wallet.name} ${syncProgress}% Synced",
|
||||
"${wallet!.name} ${syncProgress}% Synced",
|
||||
'Background sync - ${DateTime.now()}',
|
||||
const NotificationDetails(
|
||||
android: AndroidNotificationDetails(
|
||||
|
|
Loading…
Reference in a new issue