# ahmed-hks/bazzar-project architecture

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

- Interactive diagram: https://gitdiagram.com/ahmed-hks/bazzar-project
- Repository: https://github.com/ahmed-hks/bazzar-project

## Overview

This is a Flutter application with named screens for onboarding, account access, browsing, favorites, history, help, and profiles. The sampled code shows native launch and window-hosting scaffolding, but not Dart screen implementations or navigation, so those screen relationships are left unspecified. Platform groups represent the sampled Linux and Windows runners; the app’s broader cross-platform intent is visible in the tree, but its Dart-to-runner wiring was not shown.

Main entry points: [`windows/runner/flutter_window.cpp`](https://github.com/ahmed-hks/bazzar-project/blob/main/windows/runner/flutter_window.cpp) (Flutter window), [`linux/runner/main.cc`](https://github.com/ahmed-hks/bazzar-project/blob/main/linux/runner/main.cc) (Linux entry), [`windows/runner/main.cpp`](https://github.com/ahmed-hks/bazzar-project/blob/main/windows/runner/main.cpp) (Windows entry), [`lib/screens/onboarding1.dart`](https://github.com/ahmed-hks/bazzar-project/blob/main/lib/screens/onboarding1.dart) (Onboarding)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["Flutter screens"]
  node_onboarding["Onboarding<br/>[onboarding1.dart]"]
  node_onboarding2["Onboarding steps<br/>[onboarding2.dart]"]
  node_onboarding3["Onboarding steps<br/>[onboarding3.dart]"]
  node_login["Login<br/>[login.dart]"]
  node_register["Registration<br/>[register.dart]"]
  node_verification["Verification<br/>[verification.dart]"]
  node_home["Home<br/>[home_screen.dart]"]
  node_category["Categories<br/>[category.dart]"]
  node_favorites["Favorites<br/>[fav.dart]"]
  node_history["History<br/>[history.dart]"]
  node_profile["Profile<br/>[ProfileScreen.dart]"]
  node_account["My account<br/>[myaccount.dart]"]
  node_help["Help<br/>[help.dart]"]
end

subgraph group_linux["Linux host"]
  node_linux_entry["Linux entry<br/>[main.cc]"]
  node_linux_app["GTK application<br/>[my_application.cc]"]
end

subgraph group_windows["Windows host"]
  node_windows_entry["Windows entry<br/>[main.cpp]"]
  node_flutter_window["Flutter window<br/>[flutter_window.cpp]"]
  node_win_window["Win32 window<br/>[win32_window.cpp]"]
end

node_user(("App user"))

node_linux_entry -->|"creates and runs"| node_linux_app
node_windows_entry -->|"creates"| node_flutter_window
node_flutter_window -->|"inherits window"| node_win_window
node_user -.->|"uses"| node_onboarding
node_user -.->|"uses"| node_login
node_user -.->|"uses"| node_home

click node_onboarding "https://github.com/ahmed-hks/bazzar-project/blob/main/lib/screens/onboarding1.dart"
click node_onboarding2 "https://github.com/ahmed-hks/bazzar-project/blob/main/lib/screens/onboarding2.dart"
click node_onboarding3 "https://github.com/ahmed-hks/bazzar-project/blob/main/lib/screens/onboarding3.dart"
click node_login "https://github.com/ahmed-hks/bazzar-project/blob/main/lib/screens/login.dart"
click node_register "https://github.com/ahmed-hks/bazzar-project/blob/main/lib/screens/register.dart"
click node_verification "https://github.com/ahmed-hks/bazzar-project/blob/main/lib/screens/verification.dart"
click node_home "https://github.com/ahmed-hks/bazzar-project/blob/main/lib/screens/home_screen.dart"
click node_category "https://github.com/ahmed-hks/bazzar-project/blob/main/lib/screens/category.dart"
click node_favorites "https://github.com/ahmed-hks/bazzar-project/blob/main/lib/screens/fav.dart"
click node_history "https://github.com/ahmed-hks/bazzar-project/blob/main/lib/screens/history.dart"
click node_profile "https://github.com/ahmed-hks/bazzar-project/blob/main/lib/screens/ProfileScreen.dart"
click node_account "https://github.com/ahmed-hks/bazzar-project/blob/main/lib/screens/myaccount.dart"
click node_help "https://github.com/ahmed-hks/bazzar-project/blob/main/lib/screens/help.dart"
click node_linux_entry "https://github.com/ahmed-hks/bazzar-project/blob/main/linux/runner/main.cc"
click node_linux_app "https://github.com/ahmed-hks/bazzar-project/blob/main/linux/runner/my_application.cc"
click node_windows_entry "https://github.com/ahmed-hks/bazzar-project/blob/main/windows/runner/main.cpp"
click node_flutter_window "https://github.com/ahmed-hks/bazzar-project/blob/main/windows/runner/flutter_window.cpp"
click node_win_window "https://github.com/ahmed-hks/bazzar-project/blob/main/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_onboarding,node_onboarding2,node_onboarding3,node_login,node_register,node_verification,node_home,node_category,node_favorites,node_history,node_profile,node_account,node_help,node_user toneBlue
class node_linux_entry,node_linux_app toneAmber
class node_windows_entry,node_flutter_window,node_win_window toneMint
```

## Components

### Flutter screens

- [Onboarding](https://github.com/ahmed-hks/bazzar-project/blob/main/lib/screens/onboarding1.dart): `lib/screens/onboarding1.dart`
- [Onboarding steps](https://github.com/ahmed-hks/bazzar-project/blob/main/lib/screens/onboarding2.dart): `lib/screens/onboarding2.dart`
- [Onboarding steps](https://github.com/ahmed-hks/bazzar-project/blob/main/lib/screens/onboarding3.dart): `lib/screens/onboarding3.dart`
- [Login](https://github.com/ahmed-hks/bazzar-project/blob/main/lib/screens/login.dart): `lib/screens/login.dart`
- [Registration](https://github.com/ahmed-hks/bazzar-project/blob/main/lib/screens/register.dart): `lib/screens/register.dart`
- [Verification](https://github.com/ahmed-hks/bazzar-project/blob/main/lib/screens/verification.dart): `lib/screens/verification.dart`
- [Home](https://github.com/ahmed-hks/bazzar-project/blob/main/lib/screens/home_screen.dart): `lib/screens/home_screen.dart`
- [Categories](https://github.com/ahmed-hks/bazzar-project/blob/main/lib/screens/category.dart): `lib/screens/category.dart`
- [Favorites](https://github.com/ahmed-hks/bazzar-project/blob/main/lib/screens/fav.dart): `lib/screens/fav.dart`
- [History](https://github.com/ahmed-hks/bazzar-project/blob/main/lib/screens/history.dart): `lib/screens/history.dart`
- [Profile](https://github.com/ahmed-hks/bazzar-project/blob/main/lib/screens/ProfileScreen.dart): `lib/screens/ProfileScreen.dart`
- [My account](https://github.com/ahmed-hks/bazzar-project/blob/main/lib/screens/myaccount.dart): `lib/screens/myaccount.dart`
- [Help](https://github.com/ahmed-hks/bazzar-project/blob/main/lib/screens/help.dart): `lib/screens/help.dart`

### Linux host

- [Linux entry](https://github.com/ahmed-hks/bazzar-project/blob/main/linux/runner/main.cc): `linux/runner/main.cc`
- [GTK application](https://github.com/ahmed-hks/bazzar-project/blob/main/linux/runner/my_application.cc): `linux/runner/my_application.cc`

### Windows host

- [Windows entry](https://github.com/ahmed-hks/bazzar-project/blob/main/windows/runner/main.cpp): `windows/runner/main.cpp`
- [Flutter window](https://github.com/ahmed-hks/bazzar-project/blob/main/windows/runner/flutter_window.cpp): `windows/runner/flutter_window.cpp`
- [Win32 window](https://github.com/ahmed-hks/bazzar-project/blob/main/windows/runner/win32_window.cpp): `windows/runner/win32_window.cpp`

### Other components

- **App user**

## Connections

- Linux entry → GTK application: creates and runs (evidence: `linux/runner/main.cc`)
- Windows entry → Flutter window: creates (evidence: `windows/runner/main.cpp`)
- Flutter window → Win32 window: inherits window
- App user → Onboarding: uses
- App user → Login: uses
- App user → Home: uses
