# mrjei/boatdiver architecture

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

- Interactive diagram: https://gitdiagram.com/mrjei/boatdiver
- Repository: https://github.com/mrjei/boatdiver

## Overview

BoatDiver is a minimal Flutter login-workflow sample. Its documented user path runs from splash and welcome through login, account creation choice, role-specific forms, review, and success; authentication is simulated, with no backend or persistence documented. The Dart implementation was not included in the excerpts, so workflow links rely on the README. Native Windows and Linux runner components are included as platform hosts, not as separate product logic.

Main entry points: [`lib/main.dart`](https://github.com/mrjei/boatdiver/blob/main/lib/main.dart) (Splash), [`windows/runner/flutter_window.h`](https://github.com/mrjei/boatdiver/blob/main/windows/runner/flutter_window.h) (Flutter window), [`windows/runner/main.cpp`](https://github.com/mrjei/boatdiver/blob/main/windows/runner/main.cpp) (Windows entry), [`linux/runner/main.cc`](https://github.com/mrjei/boatdiver/blob/main/linux/runner/main.cc) (Linux entry)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_login_flow["Login workflow"]
  node_splash["Splash<br/>[main.dart]"]
  node_welcome["Welcome<br/>[main.dart]"]
  node_login["Login<br/>[main.dart]"]
  node_account_choice["Account choice<br/>[main.dart]"]
  node_role_selection["Role selection<br/>[main.dart]"]
  node_forms["Role forms<br/>[main.dart]"]
  node_review["Review<br/>[main.dart]"]
  node_success["Success<br/>[main.dart]"]
end

subgraph group_platform_hosts["Platform hosts"]
  node_windows_entry["Windows entry<br/>[main.cpp]"]
  node_flutter_window["Flutter window<br/>[flutter_window.h]"]
  node_win32_window["Win32 window<br/>[win32_window.cpp]"]
  node_linux_entry["Linux entry<br/>[main.cc]"]
  node_linux_application["GTK application<br/>[my_application.h]"]
end

node_user(("User"))

node_user -->|"starts app"| node_splash
node_splash -->|"continues to"| node_welcome
node_welcome -->|"continues to"| node_login
node_login -->|"continues to"| node_account_choice
node_account_choice -->|"continues to"| node_role_selection
node_role_selection -->|"continues to"| node_forms
node_forms -->|"continues to"| node_review
node_review -->|"continues to"| node_success
node_windows_entry -->|"creates"| node_flutter_window
node_flutter_window -->|"inherits window"| node_win32_window
node_linux_entry -->|"creates app"| node_linux_application

click node_splash "https://github.com/mrjei/boatdiver/blob/main/lib/main.dart"
click node_welcome "https://github.com/mrjei/boatdiver/blob/main/lib/main.dart"
click node_login "https://github.com/mrjei/boatdiver/blob/main/lib/main.dart"
click node_account_choice "https://github.com/mrjei/boatdiver/blob/main/lib/main.dart"
click node_role_selection "https://github.com/mrjei/boatdiver/blob/main/lib/main.dart"
click node_forms "https://github.com/mrjei/boatdiver/blob/main/lib/main.dart"
click node_review "https://github.com/mrjei/boatdiver/blob/main/lib/main.dart"
click node_success "https://github.com/mrjei/boatdiver/blob/main/lib/main.dart"
click node_windows_entry "https://github.com/mrjei/boatdiver/blob/main/windows/runner/main.cpp"
click node_flutter_window "https://github.com/mrjei/boatdiver/blob/main/windows/runner/flutter_window.h"
click node_win32_window "https://github.com/mrjei/boatdiver/blob/main/windows/runner/win32_window.cpp"
click node_linux_entry "https://github.com/mrjei/boatdiver/blob/main/linux/runner/main.cc"
click node_linux_application "https://github.com/mrjei/boatdiver/blob/main/linux/runner/my_application.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_splash,node_welcome,node_login,node_account_choice,node_role_selection,node_forms,node_review,node_success,node_user toneBlue
class node_windows_entry,node_flutter_window,node_win32_window,node_linux_entry,node_linux_application toneAmber
```

## Components

### Login workflow

- [Splash](https://github.com/mrjei/boatdiver/blob/main/lib/main.dart): `lib/main.dart`
- [Welcome](https://github.com/mrjei/boatdiver/blob/main/lib/main.dart): `lib/main.dart`
- [Login](https://github.com/mrjei/boatdiver/blob/main/lib/main.dart): `lib/main.dart`
- [Account choice](https://github.com/mrjei/boatdiver/blob/main/lib/main.dart): `lib/main.dart`
- [Role selection](https://github.com/mrjei/boatdiver/blob/main/lib/main.dart): `lib/main.dart`
- [Role forms](https://github.com/mrjei/boatdiver/blob/main/lib/main.dart): `lib/main.dart`
- [Review](https://github.com/mrjei/boatdiver/blob/main/lib/main.dart): `lib/main.dart`
- [Success](https://github.com/mrjei/boatdiver/blob/main/lib/main.dart): `lib/main.dart`

### Platform hosts

- [Windows entry](https://github.com/mrjei/boatdiver/blob/main/windows/runner/main.cpp): `windows/runner/main.cpp`
- [Flutter window](https://github.com/mrjei/boatdiver/blob/main/windows/runner/flutter_window.h): `windows/runner/flutter_window.h`
- [Win32 window](https://github.com/mrjei/boatdiver/blob/main/windows/runner/win32_window.cpp): `windows/runner/win32_window.cpp`
- [Linux entry](https://github.com/mrjei/boatdiver/blob/main/linux/runner/main.cc): `linux/runner/main.cc`
- [GTK application](https://github.com/mrjei/boatdiver/blob/main/linux/runner/my_application.h): `linux/runner/my_application.h`

### Other components

- **User**

## Connections

- User → Splash: starts app (evidence: `README.md`)
- Splash → Welcome: continues to (evidence: `README.md`)
- Welcome → Login: continues to (evidence: `README.md`)
- Login → Account choice: continues to (evidence: `README.md`)
- Account choice → Role selection: continues to (evidence: `README.md`)
- Role selection → Role forms: continues to (evidence: `README.md`)
- Role forms → Review: continues to (evidence: `README.md`)
- Review → Success: continues to (evidence: `README.md`)
- Windows entry → Flutter window: creates (evidence: `windows/runner/main.cpp`)
- Flutter window → Win32 window: inherits window (evidence: `windows/runner/flutter_window.h`)
- Linux entry → GTK application: creates app (evidence: `linux/runner/main.cc`)
