# ziad-zezo/nosavechat architecture

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

- Interactive diagram: https://gitdiagram.com/ziad-zezo/nosavechat
- Repository: https://github.com/ziad-zezo/nosavechat

## Overview

This is a Flutter quick-chat app, apparently centered on starting chats without saving contacts, with chat history and settings. The README is only a Flutter starter template, and the Dart implementation was not excerpted, so product workflows and most app-internal links are inferred from filenames and shown as unverified. The graph also shows the sampled Windows host and iOS share extension; it does not imply unsampled platform wiring.

Main entry points: [`lib/screens/home_page.dart`](https://github.com/ziad-zezo/nosavechat/blob/main/lib/screens/home_page.dart) (Home page), [`windows/runner/flutter_window.cpp`](https://github.com/ziad-zezo/nosavechat/blob/main/windows/runner/flutter_window.cpp) (Windows Flutter host), [`lib/main.dart`](https://github.com/ziad-zezo/nosavechat/blob/main/lib/main.dart) (App entry), [`lib/cubit/chat_history_cubit.dart`](https://github.com/ziad-zezo/nosavechat/blob/main/lib/cubit/chat_history_cubit.dart) (History state)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["Chat app"]
  node_entry["App entry<br/>[main.dart]"]
  node_home["Home screen<br/>[home_screen.dart]"]
  node_home_page["Home page<br/>[home_page.dart]"]
  node_phone_input["Phone input"]
  node_chat_action["Start chat"]
  node_recent_numbers["Recent numbers"]
  node_phone_utils["Phone utilities<br/>[phone_utils.dart]"]
  node_image_scan["Image scan<br/>[scan_image.dart]"]
end

subgraph group_history["History and settings"]
  node_history_page["History page<br/>[history_page.dart]"]
  node_history_state["History state"]
  node_history_model["Chat records<br/>[chat_history.dart]"]
  node_settings_page["Settings page<br/>[settings_page.dart]"]
  node_settings_helper["Settings helper"]
end

subgraph group_platform["Platform entry points"]
  node_windows_host["Windows Flutter host<br/>[flutter_window.cpp]"]
  node_windows_window["Windows window<br/>[win32_window.cpp]"]
  node_windows_start["Windows launcher<br/>[main.cpp]"]
end

subgraph group_sharing["Shared media"]
  node_share_extension["iOS share extension"]
  node_shared_media[("Shared media files")]
end

node_user(("User"))
node_share_actor(("Sharing app"))
node_messaging_app(("Messaging app"))

node_user -.->|"opens"| node_entry
node_entry -.->|"shows"| node_home
node_home -.->|"renders"| node_home_page
node_home_page -.->|"accepts number"| node_phone_input
node_home_page -.->|"offers"| node_chat_action
node_home_page -.->|"shows"| node_recent_numbers
node_chat_action -.->|"opens chat"| node_messaging_app
node_home_page -.->|"updates"| node_history_state
node_history_state -.->|"persists"| node_history_model
node_history_page -.->|"uses"| node_history_state
node_settings_page -.->|"uses"| node_settings_helper
node_home_page -.->|"uses"| node_phone_utils
node_home_page -.->|"uses"| node_image_scan
node_share_actor -->|"shares media"| node_share_extension
node_share_extension -->|"writes files"| node_shared_media
node_windows_start -->|"creates host"| node_windows_host
node_windows_host -->|"inherits window"| node_windows_window
node_windows_host -.->|"runs Flutter app"| node_entry

click node_entry "https://github.com/ziad-zezo/nosavechat/blob/main/lib/main.dart"
click node_home "https://github.com/ziad-zezo/nosavechat/blob/main/lib/screens/home_screen.dart"
click node_home_page "https://github.com/ziad-zezo/nosavechat/blob/main/lib/screens/home_page.dart"
click node_phone_input "https://github.com/ziad-zezo/nosavechat/blob/main/lib/widgets/phone_number_text_field.dart"
click node_chat_action "https://github.com/ziad-zezo/nosavechat/blob/main/lib/widgets/start_chat_button.dart"
click node_recent_numbers "https://github.com/ziad-zezo/nosavechat/blob/main/lib/widgets/recent_numbers_list_tile.dart"
click node_history_page "https://github.com/ziad-zezo/nosavechat/blob/main/lib/screens/history_page.dart"
click node_history_state "https://github.com/ziad-zezo/nosavechat/blob/main/lib/cubit/chat_history_cubit.dart"
click node_history_model "https://github.com/ziad-zezo/nosavechat/blob/main/lib/hive/chat_history.dart"
click node_settings_page "https://github.com/ziad-zezo/nosavechat/blob/main/lib/screens/settings_page.dart"
click node_settings_helper "https://github.com/ziad-zezo/nosavechat/blob/main/lib/helper_files/settings_helper.dart"
click node_phone_utils "https://github.com/ziad-zezo/nosavechat/blob/main/lib/helper_files/phone_utils.dart"
click node_image_scan "https://github.com/ziad-zezo/nosavechat/blob/main/lib/helper_files/scan_image.dart"
click node_share_extension "https://github.com/ziad-zezo/nosavechat/blob/main/ios/ShareExtension/ShareViewController.swift"
click node_windows_host "https://github.com/ziad-zezo/nosavechat/blob/main/windows/runner/flutter_window.cpp"
click node_windows_window "https://github.com/ziad-zezo/nosavechat/blob/main/windows/runner/win32_window.cpp"
click node_windows_start "https://github.com/ziad-zezo/nosavechat/blob/main/windows/runner/main.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_home_page,node_phone_input,node_chat_action,node_recent_numbers,node_phone_utils,node_image_scan,node_user toneBlue
class node_history_page,node_history_state,node_history_model,node_settings_page,node_settings_helper toneAmber
class node_windows_host,node_windows_window,node_windows_start toneMint
class node_share_extension,node_shared_media toneRose
class node_share_actor,node_messaging_app toneIndigo
```

## Components

### Chat app

- [App entry](https://github.com/ziad-zezo/nosavechat/blob/main/lib/main.dart): `lib/main.dart`
- [Home screen](https://github.com/ziad-zezo/nosavechat/blob/main/lib/screens/home_screen.dart): `lib/screens/home_screen.dart`
- [Home page](https://github.com/ziad-zezo/nosavechat/blob/main/lib/screens/home_page.dart): `lib/screens/home_page.dart`
- [Phone input](https://github.com/ziad-zezo/nosavechat/blob/main/lib/widgets/phone_number_text_field.dart): `lib/widgets/phone_number_text_field.dart`
- [Start chat](https://github.com/ziad-zezo/nosavechat/blob/main/lib/widgets/start_chat_button.dart): `lib/widgets/start_chat_button.dart`
- [Recent numbers](https://github.com/ziad-zezo/nosavechat/blob/main/lib/widgets/recent_numbers_list_tile.dart): `lib/widgets/recent_numbers_list_tile.dart`
- [Phone utilities](https://github.com/ziad-zezo/nosavechat/blob/main/lib/helper_files/phone_utils.dart): `lib/helper_files/phone_utils.dart`
- [Image scan](https://github.com/ziad-zezo/nosavechat/blob/main/lib/helper_files/scan_image.dart): `lib/helper_files/scan_image.dart`

### History and settings

- [History page](https://github.com/ziad-zezo/nosavechat/blob/main/lib/screens/history_page.dart): `lib/screens/history_page.dart`
- [History state](https://github.com/ziad-zezo/nosavechat/blob/main/lib/cubit/chat_history_cubit.dart): `lib/cubit/chat_history_cubit.dart`
- [Chat records](https://github.com/ziad-zezo/nosavechat/blob/main/lib/hive/chat_history.dart): `lib/hive/chat_history.dart`
- [Settings page](https://github.com/ziad-zezo/nosavechat/blob/main/lib/screens/settings_page.dart): `lib/screens/settings_page.dart`
- [Settings helper](https://github.com/ziad-zezo/nosavechat/blob/main/lib/helper_files/settings_helper.dart): `lib/helper_files/settings_helper.dart`

### Platform entry points

- [Windows Flutter host](https://github.com/ziad-zezo/nosavechat/blob/main/windows/runner/flutter_window.cpp): `windows/runner/flutter_window.cpp`
- [Windows window](https://github.com/ziad-zezo/nosavechat/blob/main/windows/runner/win32_window.cpp): `windows/runner/win32_window.cpp`
- [Windows launcher](https://github.com/ziad-zezo/nosavechat/blob/main/windows/runner/main.cpp): `windows/runner/main.cpp`

### Shared media

- [iOS share extension](https://github.com/ziad-zezo/nosavechat/blob/main/ios/ShareExtension/ShareViewController.swift): `ios/ShareExtension/ShareViewController.swift`
- **Shared media files**

### Other components

- **User**
- **Sharing app**
- **Messaging app**

## Connections

- User → App entry: opens
- App entry → Home screen: shows
- Home screen → Home page: renders
- Home page → Phone input: accepts number
- Home page → Start chat: offers
- Home page → Recent numbers: shows
- Start chat → Messaging app: opens chat
- Home page → History state: updates
- History state → Chat records: persists
- History page → History state: uses
- Settings page → Settings helper: uses
- Home page → Phone utilities: uses
- Home page → Image scan: uses
- Sharing app → iOS share extension: shares media (evidence: `ios/ShareExtension/ShareViewController.swift`)
- iOS share extension → Shared media files: writes files (evidence: `ios/ShareExtension/ShareViewController.swift`)
- Windows launcher → Windows Flutter host: creates host (evidence: `windows/runner/main.cpp`)
- Windows Flutter host → Windows window: inherits window (evidence: `windows/runner/flutter_window.cpp`)
- Windows Flutter host → App entry: runs Flutter app
