diff --git a/android/app/src/main/AndroidManifest.xml b/android/app/src/main/AndroidManifest.xml index b2448c1..12021a5 100644 --- a/android/app/src/main/AndroidManifest.xml +++ b/android/app/src/main/AndroidManifest.xml @@ -72,5 +72,25 @@ + + + + + + + + + + + + + + + + + + + + diff --git a/lib/features/notifications/presentation/screens/notifications_screen.dart b/lib/features/notifications/presentation/screens/notifications_screen.dart index 4dcf4f3..b759460 100644 --- a/lib/features/notifications/presentation/screens/notifications_screen.dart +++ b/lib/features/notifications/presentation/screens/notifications_screen.dart @@ -93,10 +93,14 @@ class _NotificationsScreenState extends ConsumerState { }), const Spacer(), GestureDetector( - onTap: () { - ref + onTap: () async { + await ref .read(notificationListProvider.notifier) .markAllAsRead(); + // Reload current filter to reflect changes + ref + .read(notificationListProvider.notifier) + .loadNotifications(filter: _activeFilter); }, child: const Text( 'Mark all as read',