How devsayed02/prayer_times_dashboard works
This is a Flutter-based administration app for a prayer-times dashboard, with event management, app-update settings, notification sending, and notification history. The principal workflow is an administrator using the app’s pages to manage these records or send notifications; client services connect those pages to HTTP functions, which read and write Firebase data or send through FCM. The README is only a title, and Flutter implementation excerpts were not provided, so page-to-service links are inferred from the matching filenames; backend behavior is grounded in the sampled functions source.
Main entry points: main.dart Flutter app · index.ts Send notification API · events_management_page.dart Events management · app_update_page.dart App updates
Components 20
Admin interface
- Flutter app
lib/main.dart - Dashboard
lib/presentation/pages/dashboard_page.dart - Events management
lib/presentation/pages/events_management_page.dart - App updates
lib/presentation/pages/app_update_page.dart - Send notification
lib/presentation/pages/send_notification_page.dart - Notification history
lib/presentation/pages/notification_history_page.dart
Client services
- Events service
lib/data/services/events_service.dart - App update service
lib/data/services/app_update_service.dart - Notification sender
lib/data/services/fcm_notification_sender.dart - History service
lib/data/services/notification_history_service.dart - Event model
lib/data/models/islamic_event.dart - Update model
lib/data/models/app_update.dart - Notification log model
lib/data/models/notification_log.dart
Cloud functions
- Send notification API
functions/src/index.ts - App update APIs
functions/src/index.ts - Event APIs
functions/src/index.ts - History API
functions/src/index.ts
Firebase services
- Cloud Firestore
- Firebase Cloud Messaging
Other components
- Administrator
Connections 19
- Administrator → Flutter app: uses
- Flutter app → Dashboard: opens
- Flutter app → Events management: opens
- Flutter app → App updates: opens
- Flutter app → Send notification: opens
- Flutter app → Notification history: opens
- Events management → Events service: manages events
- App updates → App update service: manages settings
- Send notification → Notification sender: submits notification
- Notification history → History service: loads history
- Events service → Event APIs: requests events
- App update service → App update APIs: requests settings
- Notification sender → Send notification API: sends request
- History service → History API: requests logs
- Event APIs → Cloud Firestore: reads and writes events
- App update APIs → Cloud Firestore: reads and writes settings
- Send notification API → Firebase Cloud Messaging: dispatches notification
- Send notification API → Cloud Firestore: writes delivery logs
- History API → Cloud Firestore: reads logs