feat: bugfixes, finished go_router migration, implemented better visibility of states

This commit is contained in:
Anton Stubenbord
2023-10-06 01:17:08 +02:00
parent ad23df4f89
commit a2c5ced3b7
102 changed files with 1512 additions and 3090 deletions

View File

@@ -54,6 +54,7 @@ class LocalNotificationService {
required bool finished,
required String locale,
required String userId,
double? progress,
}) async {
final tr = await S.delegate.load(Locale(locale));
@@ -68,8 +69,10 @@ class LocalNotificationService {
android: AndroidNotificationDetails(
NotificationChannel.documentDownload.id + "_${document.id}",
NotificationChannel.documentDownload.name,
progress: ((progress ?? 0) * 100).toInt(),
maxProgress: 100,
indeterminate: progress == null && !finished,
ongoing: !finished,
indeterminate: true,
importance: Importance.max,
priority: Priority.high,
showProgress: !finished,