Feature Pack with bug fixes for V2

This commit is contained in:
Ujwal223
2026-06-09 23:39:43 +05:45
parent f1bd12f0bd
commit 39b6545e4a
53 changed files with 7314 additions and 328 deletions
+6 -7
View File
@@ -1,4 +1,3 @@
import 'package:flutter/foundation.dart';
import 'package:flutter_local_notifications/flutter_local_notifications.dart';
class NotificationService {
@@ -55,7 +54,7 @@ class NotificationService {
>()
?.requestPermissions(alert: true, badge: true, sound: true);
} catch (e) {
debugPrint('iOS permission request error: $e');
// debugPrint('iOS permission request error: $e');
}
}
@@ -67,7 +66,7 @@ class NotificationService {
>()
?.requestNotificationsPermission();
} catch (e) {
debugPrint('Android permission request error: $e');
// debugPrint('Android permission request error: $e');
}
}
@@ -105,7 +104,7 @@ class NotificationService {
notificationDetails: platformDetails,
);
} catch (e) {
debugPrint('Notification error: $e');
// debugPrint('Notification error: $e');
}
}
@@ -149,7 +148,7 @@ class NotificationService {
notificationDetails: platformDetails,
);
} catch (e) {
debugPrint('Persistent notification error: $e');
// debugPrint('Persistent notification error: $e');
}
}
@@ -158,7 +157,7 @@ class NotificationService {
try {
await _notificationsPlugin.cancel(id: id);
} catch (e) {
debugPrint('Cancel persistent notification error: $e');
// debugPrint('Cancel persistent notification error: $e');
}
}
@@ -167,7 +166,7 @@ class NotificationService {
try {
await _notificationsPlugin.cancelAll();
} catch (e) {
debugPrint('Cancel all notifications error: $e');
// debugPrint('Cancel all notifications error: $e');
}
}
}