# mspoulaei/linout-iust architecture

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

- Interactive diagram: https://gitdiagram.com/mspoulaei/linout-iust
- Repository: https://github.com/mspoulaei/linout-iust

## Overview

Linout is a cross-platform Flutter app for IUST students and staff to manage internet accounts. Its documented user journey is adding an account, then using the dashboard to connect or disconnect and monitor usage. The tree identifies separate screens, account/provider, and network-service modules, but their implementation and call relationships were not excerpted; those links are therefore omitted rather than inferred. README claims encryption and usage metrics, while sampled native files show platform hosting and plugin registration. The graph preserves those host components; app-to-native wiring beyond sampled references is not asserted.

Main entry points: [`lib/screens/home_page.dart`](https://github.com/mspoulaei/linout-iust/blob/master/lib/screens/home_page.dart) (Dashboard), [`lib/screens/account_list_screen.dart`](https://github.com/mspoulaei/linout-iust/blob/master/lib/screens/account_list_screen.dart) (Account list), [`windows/runner/flutter_window.h`](https://github.com/mspoulaei/linout-iust/blob/master/windows/runner/flutter_window.h) (Flutter window), [`windows/runner/win32_window.h`](https://github.com/mspoulaei/linout-iust/blob/master/windows/runner/win32_window.h) (Win32 window API)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["Flutter app"]
  node_entry["App entry<br/>[main.dart]"]
  node_home["Dashboard<br/>[home_page.dart]"]
  node_account_list["Account list"]
  node_info["Info page<br/>[info_page.dart]"]
  node_about["About screen"]
end

subgraph group_account["Account and network"]
  node_provider["Account provider"]
  node_model["Account model<br/>[account.dart]"]
  node_network["Network service"]
  node_encrypted_data[("Encrypted credentials")]
end

subgraph group_platform["Platform hosts"]
  node_ios_host["iOS host<br/>[AppDelegate.swift]"]
  node_macos_plugins["macOS plugins"]
  node_linux_app["Linux app host<br/>[my_application.cc]"]
  node_linux_header["Linux app declaration<br/>[my_application.h]"]
  node_linux_plugins["Linux plugins"]
  node_linux_plugin_header["Linux plugin declaration"]
  node_windows_entry["Windows entry<br/>[main.cpp]"]
  node_flutter_window["Flutter window<br/>[flutter_window.h]"]
  node_win32_header["Win32 window API<br/>[win32_window.h]"]
  node_win32_impl["Win32 window<br/>[win32_window.cpp]"]
end

node_user(("Student or staff"))
node_iust_network{{"IUST internet service"}}

node_user -.->|"opens"| node_entry
node_user -->|"adds account"| node_account_list
node_user -->|"uses dashboard"| node_home
node_home -->|"connects or disconnects"| node_iust_network
node_home -->|"monitors usage"| node_iust_network
node_account_list -->|"stores securely"| node_encrypted_data
node_windows_entry -->|"creates"| node_flutter_window
node_flutter_window -->|"inherits"| node_win32_header
node_win32_impl -->|"implements"| node_win32_header
node_linux_app -->|"uses declaration"| node_linux_header
node_linux_plugins -->|"includes"| node_linux_plugin_header
node_ios_host -->|"references registrant"| node_macos_plugins

click node_entry "https://github.com/mspoulaei/linout-iust/blob/master/lib/main.dart"
click node_home "https://github.com/mspoulaei/linout-iust/blob/master/lib/screens/home_page.dart"
click node_account_list "https://github.com/mspoulaei/linout-iust/blob/master/lib/screens/account_list_screen.dart"
click node_info "https://github.com/mspoulaei/linout-iust/blob/master/lib/screens/info_page.dart"
click node_about "https://github.com/mspoulaei/linout-iust/blob/master/lib/screens/about_us_screen.dart"
click node_provider "https://github.com/mspoulaei/linout-iust/blob/master/lib/providers/account_provider.dart"
click node_model "https://github.com/mspoulaei/linout-iust/blob/master/lib/models/account.dart"
click node_network "https://github.com/mspoulaei/linout-iust/blob/master/lib/services/network_service.dart"
click node_ios_host "https://github.com/mspoulaei/linout-iust/blob/master/ios/Runner/AppDelegate.swift"
click node_macos_plugins "https://github.com/mspoulaei/linout-iust/blob/master/macos/Flutter/GeneratedPluginRegistrant.swift"
click node_linux_app "https://github.com/mspoulaei/linout-iust/blob/master/linux/runner/my_application.cc"
click node_linux_header "https://github.com/mspoulaei/linout-iust/blob/master/linux/runner/my_application.h"
click node_linux_plugins "https://github.com/mspoulaei/linout-iust/blob/master/linux/flutter/generated_plugin_registrant.cc"
click node_linux_plugin_header "https://github.com/mspoulaei/linout-iust/blob/master/linux/flutter/generated_plugin_registrant.h"
click node_windows_entry "https://github.com/mspoulaei/linout-iust/blob/master/windows/runner/main.cpp"
click node_flutter_window "https://github.com/mspoulaei/linout-iust/blob/master/windows/runner/flutter_window.h"
click node_win32_header "https://github.com/mspoulaei/linout-iust/blob/master/windows/runner/win32_window.h"
click node_win32_impl "https://github.com/mspoulaei/linout-iust/blob/master/windows/runner/win32_window.cpp"

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_home,node_account_list,node_info,node_about toneBlue
class node_provider,node_model,node_network,node_encrypted_data toneAmber
class node_ios_host,node_macos_plugins,node_linux_app,node_linux_header,node_linux_plugins,node_linux_plugin_header,node_windows_entry,node_flutter_window,node_win32_header,node_win32_impl toneMint
class node_user,node_iust_network toneIndigo
```

## Components

### Flutter app

- [App entry](https://github.com/mspoulaei/linout-iust/blob/master/lib/main.dart): `lib/main.dart`
- [Dashboard](https://github.com/mspoulaei/linout-iust/blob/master/lib/screens/home_page.dart): `lib/screens/home_page.dart`
- [Account list](https://github.com/mspoulaei/linout-iust/blob/master/lib/screens/account_list_screen.dart): `lib/screens/account_list_screen.dart`
- [Info page](https://github.com/mspoulaei/linout-iust/blob/master/lib/screens/info_page.dart): `lib/screens/info_page.dart`
- [About screen](https://github.com/mspoulaei/linout-iust/blob/master/lib/screens/about_us_screen.dart): `lib/screens/about_us_screen.dart`

### Account and network

- [Account provider](https://github.com/mspoulaei/linout-iust/blob/master/lib/providers/account_provider.dart): `lib/providers/account_provider.dart`
- [Account model](https://github.com/mspoulaei/linout-iust/blob/master/lib/models/account.dart): `lib/models/account.dart`
- [Network service](https://github.com/mspoulaei/linout-iust/blob/master/lib/services/network_service.dart): `lib/services/network_service.dart`
- **Encrypted credentials**

### Platform hosts

- [iOS host](https://github.com/mspoulaei/linout-iust/blob/master/ios/Runner/AppDelegate.swift): `ios/Runner/AppDelegate.swift`
- [macOS plugins](https://github.com/mspoulaei/linout-iust/blob/master/macos/Flutter/GeneratedPluginRegistrant.swift): `macos/Flutter/GeneratedPluginRegistrant.swift`
- [Linux app host](https://github.com/mspoulaei/linout-iust/blob/master/linux/runner/my_application.cc): `linux/runner/my_application.cc`
- [Linux app declaration](https://github.com/mspoulaei/linout-iust/blob/master/linux/runner/my_application.h): `linux/runner/my_application.h`
- [Linux plugins](https://github.com/mspoulaei/linout-iust/blob/master/linux/flutter/generated_plugin_registrant.cc): `linux/flutter/generated_plugin_registrant.cc`
- [Linux plugin declaration](https://github.com/mspoulaei/linout-iust/blob/master/linux/flutter/generated_plugin_registrant.h): `linux/flutter/generated_plugin_registrant.h`
- [Windows entry](https://github.com/mspoulaei/linout-iust/blob/master/windows/runner/main.cpp): `windows/runner/main.cpp`
- [Flutter window](https://github.com/mspoulaei/linout-iust/blob/master/windows/runner/flutter_window.h): `windows/runner/flutter_window.h`
- [Win32 window API](https://github.com/mspoulaei/linout-iust/blob/master/windows/runner/win32_window.h): `windows/runner/win32_window.h`
- [Win32 window](https://github.com/mspoulaei/linout-iust/blob/master/windows/runner/win32_window.cpp): `windows/runner/win32_window.cpp`

### Other components

- **Student or staff**
- **IUST internet service**

## Connections

- Student or staff → App entry: opens
- Student or staff → Account list: adds account (evidence: `README.md`)
- Student or staff → Dashboard: uses dashboard (evidence: `README.md`)
- Dashboard → IUST internet service: connects or disconnects (evidence: `README.md`)
- Dashboard → IUST internet service: monitors usage (evidence: `README.md`)
- Account list → Encrypted credentials: stores securely (evidence: `README.md`)
- Windows entry → Flutter window: creates (evidence: `windows/runner/main.cpp`)
- Flutter window → Win32 window API: inherits (evidence: `windows/runner/flutter_window.h`)
- Win32 window → Win32 window API: implements (evidence: `windows/runner/win32_window.h`)
- Linux app host → Linux app declaration: uses declaration (evidence: `linux/runner/my_application.cc`)
- Linux plugins → Linux plugin declaration: includes (evidence: `linux/flutter/generated_plugin_registrant.cc`)
- iOS host → macOS plugins: references registrant (evidence: `ios/Runner/AppDelegate.swift`)
