# rendikurniawana77-code/hydrosmart_app architecture

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

- Interactive diagram: https://gitdiagram.com/rendikurniawana77-code/hydrosmart_app
- Repository: https://github.com/rendikurniawana77-code/hydrosmart_app

## Overview

HydroSmart is a Flutter app for monitoring and controlling a hydroponics system. The likely user workflow spans live telemetry, historical analytics, harvest prediction, controls, and AR monitoring, but the provided README is empty and no Dart implementation was excerpted. The graph therefore preserves the substantial Dart modules named in the tree while avoiding unsupported calls between them; the platform runner entry points are shown only where source excerpts establish their role.

Main entry points: [`hydrosmart_app/lib/main.dart`](https://github.com/rendikurniawana77-code/hydrosmart_app/blob/main/hydrosmart_app/lib/main.dart) (App entry point), [`hydrosmart_app/lib/repositories/hydro_repository.dart`](https://github.com/rendikurniawana77-code/hydrosmart_app/blob/main/hydrosmart_app/lib/repositories/hydro_repository.dart) (Hydro repository), [`hydrosmart_app/lib/providers/hydrosmart_provider.dart`](https://github.com/rendikurniawana77-code/hydrosmart_app/blob/main/hydrosmart_app/lib/providers/hydrosmart_provider.dart) (Hydro provider), [`hydrosmart_app/windows/runner/main.cpp`](https://github.com/rendikurniawana77-code/hydrosmart_app/blob/main/hydrosmart_app/windows/runner/main.cpp) (Windows entry)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["Flutter application"]
  node_entry["App entry point<br/>[main.dart]"]
  node_dashboard["Live dashboard"]
  node_ar["AR monitoring"]
  node_settings["Settings"]
  node_analytics["History analytics"]
end

subgraph group_domain["Hydroponics data"]
  node_provider["Hydro provider"]
  node_repository["Hydro repository"]
  node_cache[("Telemetry cache")]
  node_telemetry["Sensor telemetry"]
  node_sensor["Sensor data<br/>[sensor_data.dart]"]
  node_latest["Latest readings<br/>[hydro_latest.dart]"]
  node_control["System controls<br/>[hydro_control.dart]"]
  node_history["History range<br/>[history_range.dart]"]
  node_prediction["Harvest prediction"]
  node_firebase["Firebase setup"]
end

subgraph group_platform["Platform runners"]
  node_android["Android runner<br/>[MainActivity.kt]"]
  node_ios["iOS runner<br/>[AppDelegate.swift]"]
  node_windows_main["Windows entry<br/>[main.cpp]"]
  node_flutter_window["Flutter window<br/>[flutter_window.cpp]"]
  node_win32["Win32 window<br/>[win32_window.cpp]"]
  node_linux_main["Linux entry<br/>[main.cc]"]
  node_linux_app["Linux application<br/>[my_application.cc]"]
  node_plugins["Platform plugins"]
  node_win_plugins["Windows plugins"]
  node_linux_plugins["Linux plugin declarations"]
  node_win_utils["Windows utilities<br/>[utils.h]"]
end

node_user(("Hydroponics user"))
node_firebase_service[("Firebase services")]

node_user -.->|"launches"| node_entry
node_windows_main -->|"creates"| node_flutter_window
node_windows_main -->|"gets arguments"| node_win_utils
node_flutter_window -->|"extends"| node_win32
node_linux_main -->|"creates and runs"| node_linux_app
node_ios -->|"registers plugins"| node_plugins
node_entry -.->|"routes"| node_dashboard
node_entry -.->|"routes"| node_ar
node_entry -.->|"routes"| node_settings
node_dashboard -.->|"reads state"| node_provider
node_settings -.->|"updates controls"| node_provider
node_analytics -.->|"uses range"| node_history
node_provider -.->|"delegates"| node_repository
node_repository -.->|"reads and writes"| node_firebase_service
node_repository -.->|"caches telemetry"| node_cache
node_repository -.->|"configures"| node_firebase

click node_entry "https://github.com/rendikurniawana77-code/hydrosmart_app/blob/main/hydrosmart_app/lib/main.dart"
click node_dashboard "https://github.com/rendikurniawana77-code/hydrosmart_app/blob/main/hydrosmart_app/lib/screens/dashboard_screen.dart"
click node_ar "https://github.com/rendikurniawana77-code/hydrosmart_app/blob/main/hydrosmart_app/lib/screens/ar_monitoring_screen.dart"
click node_settings "https://github.com/rendikurniawana77-code/hydrosmart_app/blob/main/hydrosmart_app/lib/screens/settings_screen.dart"
click node_analytics "https://github.com/rendikurniawana77-code/hydrosmart_app/blob/main/hydrosmart_app/lib/widgets/history_analytics_card.dart"
click node_provider "https://github.com/rendikurniawana77-code/hydrosmart_app/blob/main/hydrosmart_app/lib/providers/hydrosmart_provider.dart"
click node_repository "https://github.com/rendikurniawana77-code/hydrosmart_app/blob/main/hydrosmart_app/lib/repositories/hydro_repository.dart"
click node_cache "https://github.com/rendikurniawana77-code/hydrosmart_app/blob/main/hydrosmart_app/lib/repositories/telemetry_cache.dart"
click node_telemetry "https://github.com/rendikurniawana77-code/hydrosmart_app/blob/main/hydrosmart_app/lib/models/telemetry_sample.dart"
click node_sensor "https://github.com/rendikurniawana77-code/hydrosmart_app/blob/main/hydrosmart_app/lib/models/sensor_data.dart"
click node_latest "https://github.com/rendikurniawana77-code/hydrosmart_app/blob/main/hydrosmart_app/lib/models/hydro_latest.dart"
click node_control "https://github.com/rendikurniawana77-code/hydrosmart_app/blob/main/hydrosmart_app/lib/models/hydro_control.dart"
click node_history "https://github.com/rendikurniawana77-code/hydrosmart_app/blob/main/hydrosmart_app/lib/models/history_range.dart"
click node_prediction "https://github.com/rendikurniawana77-code/hydrosmart_app/blob/main/hydrosmart_app/lib/models/harvest_prediction.dart"
click node_firebase "https://github.com/rendikurniawana77-code/hydrosmart_app/blob/main/hydrosmart_app/lib/firebase_options.dart"
click node_android "https://github.com/rendikurniawana77-code/hydrosmart_app/blob/main/hydrosmart_app/android/app/src/main/kotlin/com/example/hydrosmart_app/MainActivity.kt"
click node_ios "https://github.com/rendikurniawana77-code/hydrosmart_app/blob/main/hydrosmart_app/ios/Runner/AppDelegate.swift"
click node_windows_main "https://github.com/rendikurniawana77-code/hydrosmart_app/blob/main/hydrosmart_app/windows/runner/main.cpp"
click node_flutter_window "https://github.com/rendikurniawana77-code/hydrosmart_app/blob/main/hydrosmart_app/windows/runner/flutter_window.cpp"
click node_win32 "https://github.com/rendikurniawana77-code/hydrosmart_app/blob/main/hydrosmart_app/windows/runner/win32_window.cpp"
click node_linux_main "https://github.com/rendikurniawana77-code/hydrosmart_app/blob/main/hydrosmart_app/linux/runner/main.cc"
click node_linux_app "https://github.com/rendikurniawana77-code/hydrosmart_app/blob/main/hydrosmart_app/linux/runner/my_application.cc"
click node_plugins "https://github.com/rendikurniawana77-code/hydrosmart_app/blob/main/hydrosmart_app/macos/Flutter/GeneratedPluginRegistrant.swift"
click node_win_plugins "https://github.com/rendikurniawana77-code/hydrosmart_app/blob/main/hydrosmart_app/windows/flutter/generated_plugin_registrant.cc"
click node_linux_plugins "https://github.com/rendikurniawana77-code/hydrosmart_app/blob/main/hydrosmart_app/linux/flutter/generated_plugin_registrant.h"
click node_win_utils "https://github.com/rendikurniawana77-code/hydrosmart_app/blob/main/hydrosmart_app/windows/runner/utils.h"

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_entry,node_dashboard,node_ar,node_settings,node_analytics,node_user toneBlue
class node_provider,node_repository,node_cache,node_telemetry,node_sensor,node_latest,node_control,node_history,node_prediction,node_firebase,node_firebase_service toneAmber
class node_android,node_ios,node_windows_main,node_flutter_window,node_win32,node_linux_main,node_linux_app,node_plugins,node_win_plugins,node_linux_plugins,node_win_utils toneMint
```

## Components

### Flutter application

- [App entry point](https://github.com/rendikurniawana77-code/hydrosmart_app/blob/main/hydrosmart_app/lib/main.dart): `hydrosmart_app/lib/main.dart`
- [Live dashboard](https://github.com/rendikurniawana77-code/hydrosmart_app/blob/main/hydrosmart_app/lib/screens/dashboard_screen.dart): `hydrosmart_app/lib/screens/dashboard_screen.dart`
- [AR monitoring](https://github.com/rendikurniawana77-code/hydrosmart_app/blob/main/hydrosmart_app/lib/screens/ar_monitoring_screen.dart): `hydrosmart_app/lib/screens/ar_monitoring_screen.dart`
- [Settings](https://github.com/rendikurniawana77-code/hydrosmart_app/blob/main/hydrosmart_app/lib/screens/settings_screen.dart): `hydrosmart_app/lib/screens/settings_screen.dart`
- [History analytics](https://github.com/rendikurniawana77-code/hydrosmart_app/blob/main/hydrosmart_app/lib/widgets/history_analytics_card.dart): `hydrosmart_app/lib/widgets/history_analytics_card.dart`

### Hydroponics data

- [Hydro provider](https://github.com/rendikurniawana77-code/hydrosmart_app/blob/main/hydrosmart_app/lib/providers/hydrosmart_provider.dart): `hydrosmart_app/lib/providers/hydrosmart_provider.dart`
- [Hydro repository](https://github.com/rendikurniawana77-code/hydrosmart_app/blob/main/hydrosmart_app/lib/repositories/hydro_repository.dart): `hydrosmart_app/lib/repositories/hydro_repository.dart`
- [Telemetry cache](https://github.com/rendikurniawana77-code/hydrosmart_app/blob/main/hydrosmart_app/lib/repositories/telemetry_cache.dart): `hydrosmart_app/lib/repositories/telemetry_cache.dart`
- [Sensor telemetry](https://github.com/rendikurniawana77-code/hydrosmart_app/blob/main/hydrosmart_app/lib/models/telemetry_sample.dart): `hydrosmart_app/lib/models/telemetry_sample.dart`
- [Sensor data](https://github.com/rendikurniawana77-code/hydrosmart_app/blob/main/hydrosmart_app/lib/models/sensor_data.dart): `hydrosmart_app/lib/models/sensor_data.dart`
- [Latest readings](https://github.com/rendikurniawana77-code/hydrosmart_app/blob/main/hydrosmart_app/lib/models/hydro_latest.dart): `hydrosmart_app/lib/models/hydro_latest.dart`
- [System controls](https://github.com/rendikurniawana77-code/hydrosmart_app/blob/main/hydrosmart_app/lib/models/hydro_control.dart): `hydrosmart_app/lib/models/hydro_control.dart`
- [History range](https://github.com/rendikurniawana77-code/hydrosmart_app/blob/main/hydrosmart_app/lib/models/history_range.dart): `hydrosmart_app/lib/models/history_range.dart`
- [Harvest prediction](https://github.com/rendikurniawana77-code/hydrosmart_app/blob/main/hydrosmart_app/lib/models/harvest_prediction.dart): `hydrosmart_app/lib/models/harvest_prediction.dart`
- [Firebase setup](https://github.com/rendikurniawana77-code/hydrosmart_app/blob/main/hydrosmart_app/lib/firebase_options.dart): `hydrosmart_app/lib/firebase_options.dart`

### Platform runners

- [Android runner](https://github.com/rendikurniawana77-code/hydrosmart_app/blob/main/hydrosmart_app/android/app/src/main/kotlin/com/example/hydrosmart_app/MainActivity.kt): `hydrosmart_app/android/app/src/main/kotlin/com/example/hydrosmart_app/MainActivity.kt`
- [iOS runner](https://github.com/rendikurniawana77-code/hydrosmart_app/blob/main/hydrosmart_app/ios/Runner/AppDelegate.swift): `hydrosmart_app/ios/Runner/AppDelegate.swift`
- [Windows entry](https://github.com/rendikurniawana77-code/hydrosmart_app/blob/main/hydrosmart_app/windows/runner/main.cpp): `hydrosmart_app/windows/runner/main.cpp`
- [Flutter window](https://github.com/rendikurniawana77-code/hydrosmart_app/blob/main/hydrosmart_app/windows/runner/flutter_window.cpp): `hydrosmart_app/windows/runner/flutter_window.cpp`
- [Win32 window](https://github.com/rendikurniawana77-code/hydrosmart_app/blob/main/hydrosmart_app/windows/runner/win32_window.cpp): `hydrosmart_app/windows/runner/win32_window.cpp`
- [Linux entry](https://github.com/rendikurniawana77-code/hydrosmart_app/blob/main/hydrosmart_app/linux/runner/main.cc): `hydrosmart_app/linux/runner/main.cc`
- [Linux application](https://github.com/rendikurniawana77-code/hydrosmart_app/blob/main/hydrosmart_app/linux/runner/my_application.cc): `hydrosmart_app/linux/runner/my_application.cc`
- [Platform plugins](https://github.com/rendikurniawana77-code/hydrosmart_app/blob/main/hydrosmart_app/macos/Flutter/GeneratedPluginRegistrant.swift): `hydrosmart_app/macos/Flutter/GeneratedPluginRegistrant.swift`
- [Windows plugins](https://github.com/rendikurniawana77-code/hydrosmart_app/blob/main/hydrosmart_app/windows/flutter/generated_plugin_registrant.cc): `hydrosmart_app/windows/flutter/generated_plugin_registrant.cc`
- [Linux plugin declarations](https://github.com/rendikurniawana77-code/hydrosmart_app/blob/main/hydrosmart_app/linux/flutter/generated_plugin_registrant.h): `hydrosmart_app/linux/flutter/generated_plugin_registrant.h`
- [Windows utilities](https://github.com/rendikurniawana77-code/hydrosmart_app/blob/main/hydrosmart_app/windows/runner/utils.h): `hydrosmart_app/windows/runner/utils.h`

### Other components

- **Hydroponics user**
- **Firebase services**

## Connections

- Hydroponics user → App entry point: launches
- Windows entry → Flutter window: creates (evidence: `hydrosmart_app/windows/runner/main.cpp`)
- Windows entry → Windows utilities: gets arguments (evidence: `hydrosmart_app/windows/runner/main.cpp`)
- Flutter window → Win32 window: extends
- Linux entry → Linux application: creates and runs (evidence: `hydrosmart_app/linux/runner/main.cc`)
- iOS runner → Platform plugins: registers plugins (evidence: `hydrosmart_app/ios/Runner/AppDelegate.swift`)
- App entry point → Live dashboard: routes
- App entry point → AR monitoring: routes
- App entry point → Settings: routes
- Live dashboard → Hydro provider: reads state
- Settings → Hydro provider: updates controls
- History analytics → History range: uses range
- Hydro provider → Hydro repository: delegates
- Hydro repository → Firebase services: reads and writes
- Hydro repository → Telemetry cache: caches telemetry
- Hydro repository → Firebase setup: configures
