fix: Switch to pdfrx pdf rendering library

This commit is contained in:
Anton Stubenbord
2024-01-07 17:46:33 +01:00
parent 27c4f7c937
commit 30f1e64cd4
13 changed files with 330 additions and 289 deletions

View File

@@ -44,7 +44,7 @@ class LocalNotificationService {
await _plugin
.resolvePlatformSpecificImplementation<
AndroidFlutterLocalNotificationsPlugin>()
?.requestPermission();
?.requestNotificationsPermission();
}
Future<void> notifyFileDownload({
@@ -56,7 +56,7 @@ class LocalNotificationService {
"File download complete.",
NotificationDetails(
android: AndroidNotificationDetails(
NotificationChannel.fileDownload.id + "_${filePath.hashCode}",
"${NotificationChannel.fileDownload.id}_${filePath.hashCode}",
NotificationChannel.fileDownload.name,
importance: Importance.max,
priority: Priority.high,
@@ -92,7 +92,7 @@ class LocalNotificationService {
: tr.notificationDownloadingDocument,
NotificationDetails(
android: AndroidNotificationDetails(
NotificationChannel.documentDownload.id + "_${document.id}",
"${NotificationChannel.documentDownload.id}_${document.id}",
NotificationChannel.documentDownload.name,
progress: ((progress ?? 0) * 100).toInt(),
maxProgress: 100,
@@ -146,7 +146,7 @@ class LocalNotificationService {
: tr.notificationDownloadingDocument,
NotificationDetails(
android: AndroidNotificationDetails(
NotificationChannel.documentDownload.id + "_$filename",
"${NotificationChannel.documentDownload.id}_$filename",
NotificationChannel.documentDownload.name,
ongoing: !finished,
indeterminate: true,