arch-atlas

Notifications Provider

notificationsControllerProvider · NotifierProvider

di

Overview

Single NotifierProvider exposes the merged in-app stream. NotificationService is a process-wide singleton with no provider wrapper — it predates Riverpod adoption in this codebase.

User Flow

  1. NotificationsScreen ref.watches the provider.
  2. Home bell badge ref.watches state.unreadCount.
  3. Provider survives screen pops (no autoDispose) so badge stays accurate.

Cases & Edge Cases

  • Re-mounting NotificationsScreen does not re-fetch — refresh must be called explicitly (or pull-to-refresh).

Code References

  • lib/src/features/shared/notifications/controllers/notifications_controller.dart:215 // notificationsControllerProvider

API Calls

Empty — fill this in later. Open the manifest and add content here.

Notes

Wrapping NotificationService in a Provider would simplify testing — currently any code that constructs NotificationService() gets the singleton.