# himamshus06/offline_sos_bridge architecture

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

- Interactive diagram: https://gitdiagram.com/himamshus06/offline_sos_bridge
- Repository: https://github.com/himamshus06/offline_sos_bridge

## Overview

This is a Flutter application named offline_bridge. The tree includes a first-aid mobile model asset, but the README is empty and the Dart entry point was not excerpted, so the app’s user workflow and model integration cannot be established. The graph therefore shows the known application entry point and platform-host startup structure without asserting how app features use the model. Native startup and window relationships are supported by the provided excerpts; plugin registrants are shown as platform components, not wired to unsampled app behavior.

Main entry points: [`windows/runner/flutter_window.h`](https://github.com/himamshus06/offline_sos_bridge/blob/main/windows/runner/flutter_window.h) (Flutter window), [`windows/runner/main.cpp`](https://github.com/himamshus06/offline_sos_bridge/blob/main/windows/runner/main.cpp) (Windows startup), [`linux/runner/main.cc`](https://github.com/himamshus06/offline_sos_bridge/blob/main/linux/runner/main.cc) (Linux startup), [`windows/runner/win32_window.cpp`](https://github.com/himamshus06/offline_sos_bridge/blob/main/windows/runner/win32_window.cpp) (Win32 window)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["Flutter app"]
  node_entry["App entry point<br/>[main.dart]"]
end

subgraph group_assets["Model asset"]
  node_model["First-aid model"]
end

subgraph group_hosts["Platform hosts"]
  node_win_start["Windows startup<br/>[main.cpp]"]
  node_flutter_window["Flutter window<br/>[flutter_window.h]"]
  node_win32_window["Win32 window<br/>[win32_window.cpp]"]
  node_win_plugins["Windows plugins"]
  node_linux_start["Linux startup<br/>[main.cc]"]
  node_linux_app["GTK application<br/>[my_application.h]"]
  node_linux_plugins["Linux plugins"]
  node_mac_plugins["macOS plugins"]
  node_ios_app["iOS application<br/>[AppDelegate.swift]"]
end

node_win_start -->|"creates"| node_flutter_window
node_flutter_window -->|"inherits"| node_win32_window
node_linux_start -->|"creates"| node_linux_app

click node_entry "https://github.com/himamshus06/offline_sos_bridge/blob/main/lib/main.dart"
click node_model "https://github.com/himamshus06/offline_sos_bridge/blob/main/ml/mobile_assets/first_aid_mobile_model.json"
click node_win_start "https://github.com/himamshus06/offline_sos_bridge/blob/main/windows/runner/main.cpp"
click node_flutter_window "https://github.com/himamshus06/offline_sos_bridge/blob/main/windows/runner/flutter_window.h"
click node_win32_window "https://github.com/himamshus06/offline_sos_bridge/blob/main/windows/runner/win32_window.cpp"
click node_win_plugins "https://github.com/himamshus06/offline_sos_bridge/blob/main/windows/flutter/generated_plugin_registrant.cc"
click node_linux_start "https://github.com/himamshus06/offline_sos_bridge/blob/main/linux/runner/main.cc"
click node_linux_app "https://github.com/himamshus06/offline_sos_bridge/blob/main/linux/runner/my_application.h"
click node_linux_plugins "https://github.com/himamshus06/offline_sos_bridge/blob/main/linux/flutter/generated_plugin_registrant.cc"
click node_mac_plugins "https://github.com/himamshus06/offline_sos_bridge/blob/main/macos/Flutter/GeneratedPluginRegistrant.swift"
click node_ios_app "https://github.com/himamshus06/offline_sos_bridge/blob/main/ios/Runner/AppDelegate.swift"

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 toneBlue
class node_model toneAmber
class node_win_start,node_flutter_window,node_win32_window,node_win_plugins,node_linux_start,node_linux_app,node_linux_plugins,node_mac_plugins,node_ios_app toneMint
```

## Components

### Flutter app

- [App entry point](https://github.com/himamshus06/offline_sos_bridge/blob/main/lib/main.dart): `lib/main.dart`

### Model asset

- [First-aid model](https://github.com/himamshus06/offline_sos_bridge/blob/main/ml/mobile_assets/first_aid_mobile_model.json): `ml/mobile_assets/first_aid_mobile_model.json`

### Platform hosts

- [Windows startup](https://github.com/himamshus06/offline_sos_bridge/blob/main/windows/runner/main.cpp): `windows/runner/main.cpp`
- [Flutter window](https://github.com/himamshus06/offline_sos_bridge/blob/main/windows/runner/flutter_window.h): `windows/runner/flutter_window.h`
- [Win32 window](https://github.com/himamshus06/offline_sos_bridge/blob/main/windows/runner/win32_window.cpp): `windows/runner/win32_window.cpp`
- [Windows plugins](https://github.com/himamshus06/offline_sos_bridge/blob/main/windows/flutter/generated_plugin_registrant.cc): `windows/flutter/generated_plugin_registrant.cc`
- [Linux startup](https://github.com/himamshus06/offline_sos_bridge/blob/main/linux/runner/main.cc): `linux/runner/main.cc`
- [GTK application](https://github.com/himamshus06/offline_sos_bridge/blob/main/linux/runner/my_application.h): `linux/runner/my_application.h`
- [Linux plugins](https://github.com/himamshus06/offline_sos_bridge/blob/main/linux/flutter/generated_plugin_registrant.cc): `linux/flutter/generated_plugin_registrant.cc`
- [macOS plugins](https://github.com/himamshus06/offline_sos_bridge/blob/main/macos/Flutter/GeneratedPluginRegistrant.swift): `macos/Flutter/GeneratedPluginRegistrant.swift`
- [iOS application](https://github.com/himamshus06/offline_sos_bridge/blob/main/ios/Runner/AppDelegate.swift): `ios/Runner/AppDelegate.swift`

## Connections

- Windows startup → Flutter window: creates (evidence: `windows/runner/main.cpp`)
- Flutter window → Win32 window: inherits (evidence: `windows/runner/flutter_window.h`)
- Linux startup → GTK application: creates (evidence: `linux/runner/main.cc`)
