# dexterhere04/stress_analyser_app architecture

> Architecture diagram of the GitHub repository dexterhere04/stress_analyser_app, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-04-01). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/dexterhere04/stress_analyser_app
- Repository: https://github.com/dexterhere04/stress_analyser_app

## Overview

1. **Overall shape**
   - This is a **Flutter cross-platform app** with a shared Dart codebase in `lib/` and generated/native platform runners in `android/`, `ios/`, `macos/`, `linux/`, `windows/`, and `web/`.
   - The repository is not just a standard UI app: it includes **Android-native integrations** for keyboard input and notification access, which are central to the product.

2. **Primary domain**
   - The app appears to be a **stress/typing/notification analysis tool** (“destresser”).
   - It collects three main signal types:
     - **Typing metrics**
     - **Notification sentiment**
     - **Derived stress readings / trends**
   - These signals are then presented in dashboards, history views, and detail screens.

3. **Dart application layering**
   - The Dart code is organized into a fairly clean **presentation / data / core** split.
   - `lib/core` contains shared constants, theme, and small utilities.
   - `lib/data` contains persistence models, database access, repositories, and service classes.
   - `lib/presentation` contains viewmodels and UI screens/widgets.
   - `lib/providers.dart` is likely the composition root where dependencies and state objects are wired together.

4. **Presentation layer**
   - UI is composed of:
     - `home_screen.dart` as the app entry surface
     - screens for **dashboard**, **history**, **notifications**, and **typing**
     - reusable widgets such as a **stress gauge**, **trend chart**, stat cards, and notification list items
   - Viewmodels (`dashboard_viewmodel.dart`, `notification_viewmodel.dart`, `typing_viewmodel.dart`) likely expose app state to the screens and coordinate refresh/update logic.
   - This layer is where raw data becomes user-facing summaries and charts.

5. **Data and persistence layer**
   - `lib/data/database/` includes `app_database.dart`, generated `app_database.g.dart`, and `tables.dart`, indicating a structured local database, likely SQLite-based.
   - Models such as `typing_metrics.dart`, `notification_sentiment.dart`, and `stress_reading.dart` represent the persisted/aggregated domain entities.
   - Repositories (`typing_repository.dart`, `notification_repository.dart`, `stress_repository.dart`) encapsulate read/write access and keep persistence details out of the UI.

6. **Service layer**
   - Services such as `typing_service.dart`, `notification_listener_service.dart`, `sentiment_service.dart`, and `keyboard_setup_service.dart` sit above repositories and below viewmodels.
   - These services are the main orchestration boundary between:
     - platform events or user behavior,
     - analysis/processing,
     - and local persistence.
   - `sentiment_service.dart` likely transforms notification text into a sentiment/stress signal before it is stored or displayed.

7. **Android-native subsystem**
   - The `android/app/src/main/kotlin/com/example/destresser/` tree contains the most important platform-specific logic:
     - `FlorisImeService.kt`
     - `KeystrokeLogger.kt`
     - `NotificationListener.kt`
     - keyboard support classes under `ime/keyboard/`
   - This indicates the app includes a **custom Android input method editor (IME)** or keyboard component and a **notification listener service**.
   - These Android services are key data sources feeding the Flutter side.

8. **Cross-boundary data flow**
   - The likely flow is:
     - Android keyboard and notification events are captured in native services
     - those events are passed into Flutter-facing services or persisted locally
     - repositories store normalized records in the local database
     - viewmodels aggregate data into dashboard/history-friendly summaries
     - screens render the resulting metrics and trends
   - This is an **offline/local-first architecture**; there is no visible backend or remote API in the repo.

9. **Android app structure and role**
   - Android manifests and XML resources define the IME/service permissions and configuration.
   - `MainActivity.kt` is likely a minimal Flutter host, while the real Android behavior lives in the IME and listener classes.
   - `floris_ime.xml` suggests keyboard configuration, reinforcing that Android is not just a wrapper but a functional subsystem.

10. **iOS, desktop, and web boundaries**
   - iOS/macOS/Linux/Windows/web directories appear to be standard Flutter platform runners with mostly generated scaffolding.
   - No equivalent native data-collection subsystem is visible for those platforms, so the app’s core differentiator is probably **Android-specific**.
   - On non-Android targets, the app likely functions as the Flutter UI shell with limited or no native input/notification capture.

11. **Theming and shared utilities**
   - `lib/core/theme/app_theme.dart` centralizes app styling, while `lib/core/constants/app_constants.dart` and `lib/core/utils/date_utils.dart` provide shared helpers.
   - These support consistent UI presentation and common formatting across dashboard/history screens.

12. **Architecture boundary summary for a diagram**
   - A useful diagram would show three major areas:
     - **Android native capture layer**: keyboard + notification listener + IME
     - **Flutter application layer**: services, repositories, database, viewmodels, screens
     - **Local persistence layer**: database tables and generated access code
   - The app’s central loop is: **capture behavior and notifications → analyze/normalize locally → persist → visualize in Flutter UI**.

Main entry points: [`lib/providers.dart`](https://github.com/dexterhere04/stress_analyser_app/blob/master/lib/providers.dart) (Providers), [`lib/data/repositories/typing_repository.dart`](https://github.com/dexterhere04/stress_analyser_app/blob/master/lib/data/repositories/typing_repository.dart) (Typing repo), [`lib/data/repositories/notification_repository.dart`](https://github.com/dexterhere04/stress_analyser_app/blob/master/lib/data/repositories/notification_repository.dart) (Notification repo), [`lib/main.dart`](https://github.com/dexterhere04/stress_analyser_app/blob/master/lib/main.dart) (App entry)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_android_native["Android native capture"]
  node_android_main_activity["Main activity<br/>Flutter host<br/>[MainActivity.kt]"]
  node_android_notification_listener["Notification listener<br/>Android service"]
  node_android_ime_service["IME service<br/>Android IME"]
  node_android_keystroke_logger["Keystroke logger<br/>Input logger<br/>[KeystrokeLogger.kt]"]
  node_android_keyboard_manager["Keyboard manager<br/>IME controller<br/>[KeyboardManager.kt]"]
  node_android_editor_instance["Editor instance<br/>IME state<br/>[EditorInstance.kt]"]
end

subgraph group_flutter_app["Flutter app"]
  node_app_entry["App entry<br/>Flutter bootstrap<br/>[main.dart]"]
  node_app_providers["Providers<br/>Composition root<br/>[providers.dart]"]
  node_typing_service["Typing service<br/>Domain service"]
  node_notification_listener_service["Notif service<br/>Domain service"]
  node_sentiment_service["Sentiment service<br/>Analysis service"]
  node_keyboard_setup_service["Keyboard setup<br/>Platform setup"]
  node_dashboard_vm["Dashboard VM<br/>Viewmodel"]
  node_typing_vm["Typing VM<br/>Viewmodel"]
  node_notification_vm["Notification VM<br/>Viewmodel"]
  node_home_screen["Home screen<br/>Flutter view<br/>[home_screen.dart]"]
  node_dashboard_screen["Dashboard<br/>Flutter screen"]
  node_history_screen["History<br/>Flutter screen"]
  node_notifications_screen["Notifications<br/>Flutter screen"]
  node_typing_screen["Typing<br/>Flutter screen<br/>[typing_screen.dart]"]
end

subgraph group_local_data["Local data"]
  node_app_database[("App database<br/>SQLite DB<br/>[app_database.dart]")]
  node_db_tables["Tables<br/>Schema<br/>[tables.dart]"]
  node_typing_repo["Typing repo"]
  node_notification_repo["Notification repo"]
  node_stress_repo["Stress repo"]
  node_typing_metrics["Typing metrics<br/>Domain model"]
  node_notification_sentiment["Notif sentiment<br/>Domain model"]
  node_stress_reading["Stress reading<br/>Domain model"]
end

subgraph group_platform_shells["Platform runners"]
  node_android_runner["Android runner<br/>Platform shell"]
  node_ios_runner["iOS runner<br/>Platform shell<br/>[AppDelegate.swift]"]
  node_desktop_runner["Desktop runners<br/>Platform shell<br/>[main.cc]"]
end

node_android_main_activity -->|"launches"| node_app_entry
node_android_notification_listener -->|"feeds"| node_notification_listener_service
node_android_ime_service -->|"logs"| node_android_keystroke_logger
node_android_ime_service -->|"coordinates"| node_android_keyboard_manager
node_android_keyboard_manager -->|"tracks"| node_android_editor_instance
node_app_entry -->|"initializes"| node_app_providers
node_app_providers -->|"provides"| node_typing_service
node_app_providers -->|"provides"| node_notification_listener_service
node_app_providers -->|"provides"| node_sentiment_service
node_app_providers -->|"provides"| node_keyboard_setup_service
node_typing_service -->|"stores"| node_typing_repo
node_notification_listener_service -->|"analyzes"| node_sentiment_service
node_sentiment_service -->|"stores"| node_notification_repo
node_keyboard_setup_service -->|"configures"| node_android_ime_service
node_typing_repo -->|"uses"| node_app_database
node_notification_repo -->|"uses"| node_app_database
node_stress_repo -->|"uses"| node_app_database
node_app_database -->|"defines"| node_db_tables
node_typing_repo -->|"maps"| node_typing_metrics
node_notification_repo -->|"maps"| node_notification_sentiment
node_stress_repo -->|"maps"| node_stress_reading
node_dashboard_vm -->|"reads"| node_stress_repo
node_dashboard_vm -->|"reads"| node_typing_repo
node_dashboard_vm -->|"reads"| node_notification_repo
node_typing_vm -->|"reads"| node_typing_repo
node_notification_vm -->|"reads"| node_notification_repo
node_home_screen -->|"navigates"| node_dashboard_screen
node_home_screen -->|"navigates"| node_history_screen
node_home_screen -->|"navigates"| node_notifications_screen
node_home_screen -->|"navigates"| node_typing_screen
node_dashboard_screen -->|"binds"| node_dashboard_vm
node_history_screen -->|"shows"| node_stress_repo
node_notifications_screen -->|"binds"| node_notification_vm
node_typing_screen -->|"binds"| node_typing_vm
node_android_runner -->|"hosts"| node_app_entry
node_ios_runner -->|"hosts"| node_app_entry
node_desktop_runner -->|"hosts"| node_app_entry

click node_android_main_activity "https://github.com/dexterhere04/stress_analyser_app/blob/master/android/app/src/main/kotlin/com/example/destresser/MainActivity.kt"
click node_android_notification_listener "https://github.com/dexterhere04/stress_analyser_app/blob/master/android/app/src/main/kotlin/com/example/destresser/NotificationListener.kt"
click node_android_ime_service "https://github.com/dexterhere04/stress_analyser_app/blob/master/android/app/src/main/kotlin/com/example/destresser/ime/FlorisImeService.kt"
click node_android_keystroke_logger "https://github.com/dexterhere04/stress_analyser_app/blob/master/android/app/src/main/kotlin/com/example/destresser/ime/KeystrokeLogger.kt"
click node_android_keyboard_manager "https://github.com/dexterhere04/stress_analyser_app/blob/master/android/app/src/main/kotlin/com/example/destresser/ime/keyboard/KeyboardManager.kt"
click node_android_editor_instance "https://github.com/dexterhere04/stress_analyser_app/blob/master/android/app/src/main/kotlin/com/example/destresser/ime/keyboard/EditorInstance.kt"
click node_app_entry "https://github.com/dexterhere04/stress_analyser_app/blob/master/lib/main.dart"
click node_app_providers "https://github.com/dexterhere04/stress_analyser_app/blob/master/lib/providers.dart"
click node_typing_service "https://github.com/dexterhere04/stress_analyser_app/blob/master/lib/data/services/typing_service.dart"
click node_notification_listener_service "https://github.com/dexterhere04/stress_analyser_app/blob/master/lib/data/services/notification_listener_service.dart"
click node_sentiment_service "https://github.com/dexterhere04/stress_analyser_app/blob/master/lib/data/services/sentiment_service.dart"
click node_keyboard_setup_service "https://github.com/dexterhere04/stress_analyser_app/blob/master/lib/data/services/keyboard_setup_service.dart"
click node_dashboard_vm "https://github.com/dexterhere04/stress_analyser_app/blob/master/lib/presentation/viewmodels/dashboard_viewmodel.dart"
click node_typing_vm "https://github.com/dexterhere04/stress_analyser_app/blob/master/lib/presentation/viewmodels/typing_viewmodel.dart"
click node_notification_vm "https://github.com/dexterhere04/stress_analyser_app/blob/master/lib/presentation/viewmodels/notification_viewmodel.dart"
click node_home_screen "https://github.com/dexterhere04/stress_analyser_app/blob/master/lib/presentation/views/home_screen.dart"
click node_dashboard_screen "https://github.com/dexterhere04/stress_analyser_app/blob/master/lib/presentation/views/screens/dashboard_screen.dart"
click node_history_screen "https://github.com/dexterhere04/stress_analyser_app/blob/master/lib/presentation/views/screens/history_screen.dart"
click node_notifications_screen "https://github.com/dexterhere04/stress_analyser_app/blob/master/lib/presentation/views/screens/notifications_screen.dart"
click node_typing_screen "https://github.com/dexterhere04/stress_analyser_app/blob/master/lib/presentation/views/screens/typing_screen.dart"
click node_app_database "https://github.com/dexterhere04/stress_analyser_app/blob/master/lib/data/database/app_database.dart"
click node_db_tables "https://github.com/dexterhere04/stress_analyser_app/blob/master/lib/data/database/tables.dart"
click node_typing_repo "https://github.com/dexterhere04/stress_analyser_app/blob/master/lib/data/repositories/typing_repository.dart"
click node_notification_repo "https://github.com/dexterhere04/stress_analyser_app/blob/master/lib/data/repositories/notification_repository.dart"
click node_stress_repo "https://github.com/dexterhere04/stress_analyser_app/blob/master/lib/data/repositories/stress_repository.dart"
click node_typing_metrics "https://github.com/dexterhere04/stress_analyser_app/blob/master/lib/data/models/typing_metrics.dart"
click node_notification_sentiment "https://github.com/dexterhere04/stress_analyser_app/blob/master/lib/data/models/notification_sentiment.dart"
click node_stress_reading "https://github.com/dexterhere04/stress_analyser_app/blob/master/lib/data/models/stress_reading.dart"
click node_android_runner "https://github.com/dexterhere04/stress_analyser_app/blob/master/android/app/src/main/AndroidManifest.xml"
click node_ios_runner "https://github.com/dexterhere04/stress_analyser_app/blob/master/ios/Runner/AppDelegate.swift"
click node_desktop_runner "https://github.com/dexterhere04/stress_analyser_app/blob/master/linux/runner/main.cc"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_android_main_activity,node_android_notification_listener,node_android_ime_service,node_android_keystroke_logger,node_android_keyboard_manager,node_android_editor_instance toneBlue
class node_app_entry,node_app_providers,node_typing_service,node_notification_listener_service,node_sentiment_service,node_keyboard_setup_service,node_dashboard_vm,node_typing_vm,node_notification_vm,node_home_screen,node_dashboard_screen,node_history_screen,node_notifications_screen,node_typing_screen toneAmber
class node_app_database,node_db_tables,node_typing_repo,node_notification_repo,node_stress_repo,node_typing_metrics,node_notification_sentiment,node_stress_reading toneMint
class node_android_runner,node_ios_runner,node_desktop_runner toneRose
```

## Components

### Android native capture

Android-specific keyboard and notification capture services.

- [Main activity](https://github.com/dexterhere04/stress_analyser_app/blob/master/android/app/src/main/kotlin/com/example/destresser/MainActivity.kt): Flutter host · Minimal Android entry point that hosts the Flutter app. · `android/app/src/main/kotlin/com/example/destresser/MainActivity.kt`
- [Notification listener](https://github.com/dexterhere04/stress_analyser_app/blob/master/android/app/src/main/kotlin/com/example/destresser/NotificationListener.kt): Android service · Captures notification events from the Android system. · `android/app/src/main/kotlin/com/example/destresser/NotificationListener.kt`
- [IME service](https://github.com/dexterhere04/stress_analyser_app/blob/master/android/app/src/main/kotlin/com/example/destresser/ime/FlorisImeService.kt): Android IME · Custom keyboard/input method service for keystroke capture. · `android/app/src/main/kotlin/com/example/destresser/ime/FlorisImeService.kt`
- [Keystroke logger](https://github.com/dexterhere04/stress_analyser_app/blob/master/android/app/src/main/kotlin/com/example/destresser/ime/KeystrokeLogger.kt): Input logger · Records typing activity from the IME layer. · `android/app/src/main/kotlin/com/example/destresser/ime/KeystrokeLogger.kt`
- [Keyboard manager](https://github.com/dexterhere04/stress_analyser_app/blob/master/android/app/src/main/kotlin/com/example/destresser/ime/keyboard/KeyboardManager.kt): IME controller · Coordinates keyboard/editor state inside the custom IME. · `android/app/src/main/kotlin/com/example/destresser/ime/keyboard/KeyboardManager.kt`
- [Editor instance](https://github.com/dexterhere04/stress_analyser_app/blob/master/android/app/src/main/kotlin/com/example/destresser/ime/keyboard/EditorInstance.kt): IME state · Tracks active editor context for keyboard interactions. · `android/app/src/main/kotlin/com/example/destresser/ime/keyboard/EditorInstance.kt`

### Flutter app

Shared Dart application layer for orchestration and UI.

- [App entry](https://github.com/dexterhere04/stress_analyser_app/blob/master/lib/main.dart): Flutter bootstrap · Initializes the Flutter app and shared dependencies. · `lib/main.dart`
- [Providers](https://github.com/dexterhere04/stress_analyser_app/blob/master/lib/providers.dart): Composition root · Wires repositories, services, and viewmodels together. · `lib/providers.dart`
- [Typing service](https://github.com/dexterhere04/stress_analyser_app/blob/master/lib/data/services/typing_service.dart): Domain service · Turns typing events into structured typing metrics. · `lib/data/services/typing_service.dart`
- [Notif service](https://github.com/dexterhere04/stress_analyser_app/blob/master/lib/data/services/notification_listener_service.dart): Domain service · Receives notification events and prepares them for analysis. · `lib/data/services/notification_listener_service.dart`
- [Sentiment service](https://github.com/dexterhere04/stress_analyser_app/blob/master/lib/data/services/sentiment_service.dart): Analysis service · Derives sentiment and stress signals from notification content. · `lib/data/services/sentiment_service.dart`
- [Keyboard setup](https://github.com/dexterhere04/stress_analyser_app/blob/master/lib/data/services/keyboard_setup_service.dart): Platform setup · Configures Android keyboard integration from the Flutter side. · `lib/data/services/keyboard_setup_service.dart`
- [Dashboard VM](https://github.com/dexterhere04/stress_analyser_app/blob/master/lib/presentation/viewmodels/dashboard_viewmodel.dart): Viewmodel · Aggregates stress, trend, and summary state for the dashboard. · `lib/presentation/viewmodels/dashboard_viewmodel.dart`
- [Typing VM](https://github.com/dexterhere04/stress_analyser_app/blob/master/lib/presentation/viewmodels/typing_viewmodel.dart): Viewmodel · Exposes typing history and metrics to the UI. · `lib/presentation/viewmodels/typing_viewmodel.dart`
- [Notification VM](https://github.com/dexterhere04/stress_analyser_app/blob/master/lib/presentation/viewmodels/notification_viewmodel.dart): Viewmodel · Exposes notification analysis and history to the UI. · `lib/presentation/viewmodels/notification_viewmodel.dart`
- [Home screen](https://github.com/dexterhere04/stress_analyser_app/blob/master/lib/presentation/views/home_screen.dart): Flutter view · Top-level application surface and navigation shell. · `lib/presentation/views/home_screen.dart`
- [Dashboard](https://github.com/dexterhere04/stress_analyser_app/blob/master/lib/presentation/views/screens/dashboard_screen.dart): Flutter screen · Shows stress gauge, trends, and summary cards. · `lib/presentation/views/screens/dashboard_screen.dart`
- [History](https://github.com/dexterhere04/stress_analyser_app/blob/master/lib/presentation/views/screens/history_screen.dart): Flutter screen · Displays historical readings and trend exploration. · `lib/presentation/views/screens/history_screen.dart`
- [Notifications](https://github.com/dexterhere04/stress_analyser_app/blob/master/lib/presentation/views/screens/notifications_screen.dart): Flutter screen · Shows analyzed notification items and insights. · `lib/presentation/views/screens/notifications_screen.dart`
- [Typing](https://github.com/dexterhere04/stress_analyser_app/blob/master/lib/presentation/views/screens/typing_screen.dart): Flutter screen · Shows typing metrics and related summaries. · `lib/presentation/views/screens/typing_screen.dart`

### Local data

Database, repositories, and domain models for offline storage.

- [App database](https://github.com/dexterhere04/stress_analyser_app/blob/master/lib/data/database/app_database.dart): SQLite DB · Structured local database used for offline persistence. · `lib/data/database/app_database.dart`
- [Tables](https://github.com/dexterhere04/stress_analyser_app/blob/master/lib/data/database/tables.dart): Schema · Database table definitions for persisted domain records. · `lib/data/database/tables.dart`
- [Typing repo](https://github.com/dexterhere04/stress_analyser_app/blob/master/lib/data/repositories/typing_repository.dart): Repository · Persists and queries typing metrics. · `lib/data/repositories/typing_repository.dart`
- [Notification repo](https://github.com/dexterhere04/stress_analyser_app/blob/master/lib/data/repositories/notification_repository.dart): Repository · Persists and queries notification sentiment records. · `lib/data/repositories/notification_repository.dart`
- [Stress repo](https://github.com/dexterhere04/stress_analyser_app/blob/master/lib/data/repositories/stress_repository.dart): Repository · Persists and queries derived stress readings. · `lib/data/repositories/stress_repository.dart`
- [Typing metrics](https://github.com/dexterhere04/stress_analyser_app/blob/master/lib/data/models/typing_metrics.dart): Domain model · Stored typing measurements and derived statistics. · `lib/data/models/typing_metrics.dart`
- [Notif sentiment](https://github.com/dexterhere04/stress_analyser_app/blob/master/lib/data/models/notification_sentiment.dart): Domain model · Persisted notification sentiment and analysis output. · `lib/data/models/notification_sentiment.dart`
- [Stress reading](https://github.com/dexterhere04/stress_analyser_app/blob/master/lib/data/models/stress_reading.dart): Domain model · Derived stress score or trend record. · `lib/data/models/stress_reading.dart`

### Platform runners

Generated Flutter host shells for non-Android platforms.

- [Android runner](https://github.com/dexterhere04/stress_analyser_app/blob/master/android/app/src/main/AndroidManifest.xml): Platform shell · Android Gradle app wrapper around the Flutter entry point. · `android/app/src/main/AndroidManifest.xml`
- [iOS runner](https://github.com/dexterhere04/stress_analyser_app/blob/master/ios/Runner/AppDelegate.swift): Platform shell · Standard iOS Flutter host application. · `ios/Runner/AppDelegate.swift`
- [Desktop runners](https://github.com/dexterhere04/stress_analyser_app/blob/master/linux/runner/main.cc): Platform shell · Generated Linux, macOS, and Windows Flutter host shells. · `linux/runner/main.cc`

## Connections

- Main activity → App entry: launches · Android hosts the Flutter application.
- Notification listener → Notif service: feeds · Native notification events are handed to the Flutter service layer.
- IME service → Keystroke logger: logs · The IME captures typing events through the keystroke logger.
- IME service → Keyboard manager: coordinates · Keyboard state is managed inside the IME.
- Keyboard manager → Editor instance: tracks · The manager maintains active editor context.
- App entry → Providers: initializes · App startup wires dependencies through providers.
- Providers → Typing service: provides · Dependency wiring makes typing processing available.
- Providers → Notif service: provides · Dependency wiring makes notification processing available.
- Providers → Sentiment service: provides · Dependency wiring makes sentiment analysis available.
- Providers → Keyboard setup: provides · Dependency wiring makes keyboard setup available.
- Typing service → Typing repo: stores · Typing service persists metrics through the repository.
- Notif service → Sentiment service: analyzes · Notification content is converted into sentiment signals.
- Sentiment service → Notification repo: stores · Analysis output is persisted through the repository.
- Keyboard setup → IME service: configures · Flutter-side setup supports the Android IME.
- Typing repo → App database: uses · Repository reads and writes via the local database.
- Notification repo → App database: uses · Repository reads and writes via the local database.
- Stress repo → App database: uses · Repository reads and writes derived readings in the local database.
- App database → Tables: defines · Database schema is defined by table declarations.
- Typing repo → Typing metrics: maps · Repository handles typing metric records.
- Notification repo → Notif sentiment: maps · Repository handles notification sentiment records.
- Stress repo → Stress reading: maps · Repository handles stress reading records.
- Dashboard VM → Stress repo: reads · Dashboard aggregates stress data for summaries.
- Dashboard VM → Typing repo: reads · Dashboard may include typing-related summary data.
- Dashboard VM → Notification repo: reads · Dashboard may include notification-related summary data.
- Typing VM → Typing repo: reads · Typing viewmodel exposes stored typing metrics.
- Notification VM → Notification repo: reads · Notification viewmodel exposes stored sentiment data.
- Home screen → Dashboard: navigates · Home screen surfaces the dashboard view.
- Home screen → History: navigates · Home screen surfaces history exploration.
- Home screen → Notifications: navigates · Home screen surfaces notification analysis.
- Home screen → Typing: navigates · Home screen surfaces typing metrics.
- Dashboard → Dashboard VM: binds · Dashboard UI binds to dashboard state.
- History → Stress repo: shows · History view presents persisted stress trends.
- Notifications → Notification VM: binds · Notification UI binds to notification state.
- Typing → Typing VM: binds · Typing UI binds to typing state.
- Android runner → App entry: hosts · Android app shell hosts the Flutter code.
- iOS runner → App entry: hosts · iOS shell hosts the shared Flutter code.
- Desktop runners → App entry: hosts · Desktop shells host the shared Flutter code.
