veta_notifications_kit
Flutter notifications kit aligned with @vetaui/notifications-kit: inbox,
preference matrix, unread counts, and strategy-driven realtime hooks.
Install
dependencies:
veta_notifications_kit: ^0.0.0
For local monorepo development:
dependencies:
veta_notifications_kit:
path: ../veta_notifications_kit
Setup
import 'package:veta_notifications_kit/veta_notifications_kit.dart';
import 'package:veta_foundations/veta_foundations.dart';
void main() {
configureVetaKits(notifications: mockNotificationsStrategy());
runApp(const MyApp());
}
Public exports
NotificationsStrategy,NotificationItem,NotificationPreferencemockNotificationsStrategylistNotifications,unreadCount,markNotification,markAllReadVetaNotificationsPage
Use the mock strategy for generated apps and tests, then swap in a Firebase, Supabase, Knock, or custom adapter behind the same strategy contract.