How kavidharshini922/gen-ai-mental-health-journal works
This is a Flutter app named “demo”; the README does not describe its domain or workflow. The source tree suggests a mental-wellness app with account access, mood/journal features, AI responses, and feedback. Those product paths are represented, but their connections are unverified because their Dart source was not excerpted. The graph also includes the sampled native launch shells and required central platform files; backend and service behavior is otherwise uncertain.
Main entry points: ai_solution_screen.dart AI solution · mental_health_input_screen.dart Mental health input · main.dart Flutter entry · welcome_screen.dart Welcome
Components 26
App experience
- Flutter entry
lib/main.dart - Welcome
lib/welcome_screen.dart - Login and register
lib/login_screen.dart - Choice screen
lib/choice_screen.dart - Mental health input
lib/mental_health_input_screen.dart - AI solution
lib/ai_solution_screen.dart - Feel better
lib/feel_better_screen.dart - Feedback
lib/feedback_screen.dart
Wellness tracking
- Mood tracker
lib/mood_tracker_screen.dart - Journal history
lib/history_screen.dart - Voice notes
lib/voice_note_screen.dart
App services
- Authentication service
lib/auth_service.dart - Firestore service
lib/firestore_service.dart - OpenAI service
lib/openai_service.dart - Cohere service
lib/cohere_service.dart - AI worker
mental-health-ai-worker2/src/index.js - Firebase functions
functions/index.js
Platform runtime
- Linux launcher
linux/runner/main.cc - Linux application
linux/runner/my_application.h - Linux plugin registry
linux/flutter/generated_plugin_registrant.h - Windows launcher
windows/runner/main.cpp - Flutter window
windows/runner/flutter_window.h - Windows window
windows/runner/win32_window.h - Windows plugin registry
windows/flutter/generated_plugin_registrant.h - macOS plugin registration
macos/Flutter/GeneratedPluginRegistrant.swift
Other components
- App user
Connections 19
- App user → Flutter entry: opens app
- Flutter entry → Welcome: launches
- Welcome → Login and register: offers access
- Login and register → Authentication service: authenticates
- Choice screen → Mental health input: selects input
- Mental health input → AI solution: requests guidance
- AI solution → OpenAI service: requests AI
- AI solution → Cohere service: requests AI
- Mental health input → AI worker: sends request
- AI solution → Feel better: continues to
- Feel better → Feedback: offers feedback
- App user → Mood tracker: tracks mood
- App user → Journal history: reviews entries
- App user → Voice notes: records note
- Journal history → Firestore service: loads history
- Mood tracker → Firestore service: stores mood
- Linux launcher → Linux application: creates app
linux/runner/main.cc - Windows launcher → Flutter window: creates window
windows/runner/main.cpp - Flutter window → Windows window: extends window
windows/runner/flutter_window.h