How abdullah01-flutter-develpor/facial-emotion-recognition-ai works
EmoSense AI is a Flutter facial-emotion analysis app. The principal user journey is to sign in, start an emotion scan, receive an on-device analysis, and then review or discuss results; the README also identifies saved history and insights. The README documents these capabilities, but the sampled Dart source does not show their runtime calls or data flow, so those links are marked unverified. The graph includes the documented feature areas and shared app layers without treating platform runner boilerplate as product logic.
Main entry points: emotion_inference_service.dart On-device inference · emotion_result_screen.dart Analysis results · emotion_chat_screen.dart AI emotion chat · firebase_options.dart Firebase services
Components 19
App foundation
- App navigation
lib/app - Shared services and state
lib/core
Identity
- Sign-in and account
lib/features/auth/presentation/screens - Authentication service
lib/core/services/auth_service.dart
Emotion analysis
- Home and scan entry
lib/features/home/presentation/screens/home_screen.dart - Emotion scan
lib/features/emotion_scan/presentation/screens/emotion_scan_screen.dart - On-device inference
lib/features/emotion_scan/services/emotion_inference_service.dart - Emotion classifier
lib/ml/emotion_classifier.dart - Scan and face detection
lib/features/scan/presentation/screens/scan_screen.dart
Results and engagement
- Analysis results
lib/features/emotion_result/presentation/screens/emotion_result_screen.dart - Analysis details
lib/features/emotion_result/presentation/screens/analysis_detail_screen.dart - Saved history
lib/features/history/presentation/screens/history_screen.dart - Chat history store
lib/core/services/chat_history_store.dart - Emotion insights
lib/features/insight/presentation/screens/insight_screen.dart - AI emotion chat
lib/features/chat/presentation/screens/emotion_chat_screen.dart - Profile and settings
lib/features/profile/presentation/screens/profile_screen.dart
Cloud services
- Firebase services
lib/firebase_options.dart - Cloud Functions
functions/index.js
Other components
- App user
Connections 19
- App user → App navigation: opens
- App navigation → Sign-in and account: routes to
- Sign-in and account → Authentication service: authenticates with
- Authentication service → Firebase services: uses
- App user → Home and scan entry: uses
- Home and scan entry → Emotion scan: starts
- Emotion scan → On-device inference: requests analysis
- On-device inference → Emotion classifier: classifies with
- Scan and face detection → On-device inference: may invoke
- On-device inference → Analysis results: returns analysis
- Analysis results → Analysis details: opens detail
- Analysis results → Saved history: may save to
- Saved history → Shared services and state: uses shared state
- AI emotion chat → Chat history store: may persist conversations
- App user → Emotion insights: reviews
- App user → AI emotion chat: discusses emotions
- App user → Profile and settings: manages account
- AI emotion chat → Firebase services: may use AI service
- Firebase services → Cloud Functions: may invoke