# jirattong/rally-ui-only architecture

> Architecture diagram of the GitHub repository jirattong/rally-ui-only, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-14). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/jirattong/rally-ui-only
- Repository: https://github.com/jirattong/rally-ui-only

## Overview

Rally UI is a Flutter app described as a camera-based, ML Kit gesture interface for controlling IoT devices. Its intended user workflow is gesture input, real-time recognition, then device commands; the README documents that high-level flow, but the Dart implementation was not sampled, so internal calls and page wiring remain unverified. The tree also shows home, login, profile, analytics, and device pages. Native platform files are included as host-shell components, not as separate product features.

Main entry points: [`lib/pages/start_cam.dart`](https://github.com/jirattong/rally-ui-only/blob/main/lib/pages/start_cam.dart) (Camera capture), [`lib/pages/custom_gesture_page.dart`](https://github.com/jirattong/rally-ui-only/blob/main/lib/pages/custom_gesture_page.dart) (Gesture interaction), [`linux/my_application.cc`](https://github.com/jirattong/rally-ui-only/blob/main/linux/my_application.cc) (Linux host), [`windows/runner/flutter_window.cpp`](https://github.com/jirattong/rally-ui-only/blob/main/windows/runner/flutter_window.cpp) (Windows Flutter window)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_interaction["App experience"]
  node_app["Flutter app entry<br/>[main.dart]"]
  node_home["Home pages<br/>[home_page.dart]"]
  node_home_alt["Home view<br/>[home.dart]"]
  node_login["Login and registration<br/>[log_reg_page.dart]"]
  node_profile["Profile<br/>[profile_page.dart]"]
  node_analytics["Analytics"]
  node_devices["Device management<br/>[devices_page.dart]"]
end

subgraph group_gesture["Gesture control"]
  node_camera["Camera capture<br/>[start_cam.dart]"]
  node_gestures["Gesture interaction"]
end

subgraph group_platform["Platform shells"]
  node_android_host["Android host<br/>[MainActivity.kt]"]
  node_ios_host["iOS host<br/>[AppDelegate.swift]"]
  node_linux_host["Linux host<br/>[my_application.cc]"]
  node_linux_plugins["Linux plugin registration"]
  node_linux_entry["Linux launcher<br/>[main.cc]"]
  node_macos_plugins["macOS plugin registration"]
  node_windows_entry["Windows launcher<br/>[main.cpp]"]
  node_windows_window["Windows Flutter window<br/>[flutter_window.cpp]"]
  node_windows_base["Windows window base<br/>[win32_window.cpp]"]
  node_windows_plugins["Windows plugin registration"]
end

node_user(("User"))
node_iot(("IoT devices"))

node_user -.->|"provides gesture input"| node_camera
node_camera -.->|"feeds recognition"| node_gestures
node_gestures -.->|"sends commands"| node_iot
node_linux_entry -->|"starts application"| node_linux_host
node_linux_host -->|"registers plugins"| node_linux_plugins
node_windows_entry -->|"creates window"| node_windows_window
node_windows_window -->|"extends window"| node_windows_base

click node_app "https://github.com/jirattong/rally-ui-only/blob/main/lib/main.dart"
click node_home "https://github.com/jirattong/rally-ui-only/blob/main/lib/pages/home_page.dart"
click node_home_alt "https://github.com/jirattong/rally-ui-only/blob/main/lib/pages/home.dart"
click node_login "https://github.com/jirattong/rally-ui-only/blob/main/lib/pages/log_reg_page.dart"
click node_profile "https://github.com/jirattong/rally-ui-only/blob/main/lib/pages/profile_page.dart"
click node_analytics "https://github.com/jirattong/rally-ui-only/blob/main/lib/pages/analytics_page.dart"
click node_devices "https://github.com/jirattong/rally-ui-only/blob/main/lib/pages/devices_page.dart"
click node_camera "https://github.com/jirattong/rally-ui-only/blob/main/lib/pages/start_cam.dart"
click node_gestures "https://github.com/jirattong/rally-ui-only/blob/main/lib/pages/custom_gesture_page.dart"
click node_android_host "https://github.com/jirattong/rally-ui-only/blob/main/android/app/src/main/kotlin/com/example/rally_new/MainActivity.kt"
click node_ios_host "https://github.com/jirattong/rally-ui-only/blob/main/ios/Runner/AppDelegate.swift"
click node_linux_host "https://github.com/jirattong/rally-ui-only/blob/main/linux/my_application.cc"
click node_linux_plugins "https://github.com/jirattong/rally-ui-only/blob/main/linux/flutter/generated_plugin_registrant.cc"
click node_linux_entry "https://github.com/jirattong/rally-ui-only/blob/main/linux/main.cc"
click node_macos_plugins "https://github.com/jirattong/rally-ui-only/blob/main/macos/Flutter/GeneratedPluginRegistrant.swift"
click node_windows_entry "https://github.com/jirattong/rally-ui-only/blob/main/windows/runner/main.cpp"
click node_windows_window "https://github.com/jirattong/rally-ui-only/blob/main/windows/runner/flutter_window.cpp"
click node_windows_base "https://github.com/jirattong/rally-ui-only/blob/main/windows/runner/win32_window.cpp"
click node_windows_plugins "https://github.com/jirattong/rally-ui-only/blob/main/windows/flutter/generated_plugin_registrant.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_app,node_home,node_home_alt,node_login,node_profile,node_analytics,node_devices,node_user toneBlue
class node_camera,node_gestures toneAmber
class node_android_host,node_ios_host,node_linux_host,node_linux_plugins,node_linux_entry,node_macos_plugins,node_windows_entry,node_windows_window,node_windows_base,node_windows_plugins toneMint
class node_iot toneIndigo
```

## Components

### App experience

- [Flutter app entry](https://github.com/jirattong/rally-ui-only/blob/main/lib/main.dart): `lib/main.dart`
- [Home pages](https://github.com/jirattong/rally-ui-only/blob/main/lib/pages/home_page.dart): `lib/pages/home_page.dart`
- [Home view](https://github.com/jirattong/rally-ui-only/blob/main/lib/pages/home.dart): `lib/pages/home.dart`
- [Login and registration](https://github.com/jirattong/rally-ui-only/blob/main/lib/pages/log_reg_page.dart): `lib/pages/log_reg_page.dart`
- [Profile](https://github.com/jirattong/rally-ui-only/blob/main/lib/pages/profile_page.dart): `lib/pages/profile_page.dart`
- [Analytics](https://github.com/jirattong/rally-ui-only/blob/main/lib/pages/analytics_page.dart): `lib/pages/analytics_page.dart`
- [Device management](https://github.com/jirattong/rally-ui-only/blob/main/lib/pages/devices_page.dart): `lib/pages/devices_page.dart`

### Gesture control

- [Camera capture](https://github.com/jirattong/rally-ui-only/blob/main/lib/pages/start_cam.dart): `lib/pages/start_cam.dart`
- [Gesture interaction](https://github.com/jirattong/rally-ui-only/blob/main/lib/pages/custom_gesture_page.dart): `lib/pages/custom_gesture_page.dart`

### Platform shells

- [Android host](https://github.com/jirattong/rally-ui-only/blob/main/android/app/src/main/kotlin/com/example/rally_new/MainActivity.kt): `android/app/src/main/kotlin/com/example/rally_new/MainActivity.kt`
- [iOS host](https://github.com/jirattong/rally-ui-only/blob/main/ios/Runner/AppDelegate.swift): `ios/Runner/AppDelegate.swift`
- [Linux host](https://github.com/jirattong/rally-ui-only/blob/main/linux/my_application.cc): `linux/my_application.cc`
- [Linux plugin registration](https://github.com/jirattong/rally-ui-only/blob/main/linux/flutter/generated_plugin_registrant.cc): `linux/flutter/generated_plugin_registrant.cc`
- [Linux launcher](https://github.com/jirattong/rally-ui-only/blob/main/linux/main.cc): `linux/main.cc`
- [macOS plugin registration](https://github.com/jirattong/rally-ui-only/blob/main/macos/Flutter/GeneratedPluginRegistrant.swift): `macos/Flutter/GeneratedPluginRegistrant.swift`
- [Windows launcher](https://github.com/jirattong/rally-ui-only/blob/main/windows/runner/main.cpp): `windows/runner/main.cpp`
- [Windows Flutter window](https://github.com/jirattong/rally-ui-only/blob/main/windows/runner/flutter_window.cpp): `windows/runner/flutter_window.cpp`
- [Windows window base](https://github.com/jirattong/rally-ui-only/blob/main/windows/runner/win32_window.cpp): `windows/runner/win32_window.cpp`
- [Windows plugin registration](https://github.com/jirattong/rally-ui-only/blob/main/windows/flutter/generated_plugin_registrant.cc): `windows/flutter/generated_plugin_registrant.cc`

### Other components

- **User**
- **IoT devices**

## Connections

- User → Camera capture: provides gesture input (evidence: `README.md`)
- Camera capture → Gesture interaction: feeds recognition (evidence: `README.md`)
- Gesture interaction → IoT devices: sends commands (evidence: `README.md`)
- Linux launcher → Linux host: starts application (evidence: `linux/main.cc`)
- Linux host → Linux plugin registration: registers plugins (evidence: `linux/my_application.cc`)
- Windows launcher → Windows Flutter window: creates window (evidence: `windows/runner/main.cpp`)
- Windows Flutter window → Windows window base: extends window
