Notifications Provider
notificationsControllerProvider · NotifierProvider
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
- NotificationsScreen ref.watches the provider.
- Home bell badge ref.watches state.unreadCount.
- 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.