# yassatamer/souqna architecture

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

- Interactive diagram: https://gitdiagram.com/yassatamer/souqna
- Repository: https://github.com/yassatamer/souqna

## Overview

Souqna is a Flutter application with marketplace, account, and listing feature areas; the README itself describes only a starter Flutter project, so the product purpose is inferred from the source tree. The likely user journey spans app launch, navigation, browsing, and account or listing tasks, but Dart source was not provided to verify routes or service calls. The graph therefore shows feature structure without invented data-flow links; the Windows host relationships are supported by excerpts.

Main entry points: [`windows/runner/flutter_window.cpp`](https://github.com/yassatamer/souqna/blob/main/windows/runner/flutter_window.cpp) (Flutter window), [`windows/runner/main.cpp`](https://github.com/yassatamer/souqna/blob/main/windows/runner/main.cpp) (Windows entry), [`windows/runner/win32_window.cpp`](https://github.com/yassatamer/souqna/blob/main/windows/runner/win32_window.cpp) (Win32 window), [`windows/flutter/generated_plugin_registrant.h`](https://github.com/yassatamer/souqna/blob/main/windows/flutter/generated_plugin_registrant.h) (Plugin registrar)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["App shell"]
  node_entry["Flutter entry<br/>[main.dart]"]
  node_app_root["App root<br/>[souqna_app.dart]"]
  node_router["App router<br/>[app_router.dart]"]
  node_splash["Splash screen<br/>[splash_screen.dart]"]
  node_onboarding["Onboarding"]
  node_navigation["Main navigation"]
end

subgraph group_market["Marketplace browsing"]
  node_home["Home screen<br/>[home_screen.dart]"]
  node_products_state["Product state"]
  node_product_repository["Product repository"]
  node_product_model["Product model<br/>[product_model.dart]"]
end

subgraph group_account["Account access"]
  node_auth["Authentication<br/>[auth_cubit.dart]"]
  node_login["Login and registration<br/>[login_screen.dart]"]
  node_profile["Profile screen"]
  node_profile_state["Profile state<br/>[profile_cubit.dart]"]
  node_profile_repository["Profile repository"]
end

subgraph group_listings["Listing management"]
  node_my_listings["My listings"]
  node_edit_product["Edit product"]
end

subgraph group_platform["Platform host"]
  node_windows_entry["Windows entry<br/>[main.cpp]"]
  node_flutter_window["Flutter window<br/>[flutter_window.cpp]"]
  node_win32_window["Win32 window<br/>[win32_window.cpp]"]
  node_plugin_registrar["Plugin registrar"]
end

node_user(("User"))

node_windows_entry -->|"creates"| node_flutter_window
node_flutter_window -->|"inherits"| node_win32_window
node_flutter_window -->|"registers plugins"| node_plugin_registrar

click node_entry "https://github.com/yassatamer/souqna/blob/main/lib/main.dart"
click node_app_root "https://github.com/yassatamer/souqna/blob/main/lib/souqna_app.dart"
click node_router "https://github.com/yassatamer/souqna/blob/main/lib/core/router/app_router.dart"
click node_splash "https://github.com/yassatamer/souqna/blob/main/lib/features/splash/presentation/screens/splash_screen.dart"
click node_onboarding "https://github.com/yassatamer/souqna/blob/main/lib/features/onboarding/presentation/screens/onboarding_screen.dart"
click node_navigation "https://github.com/yassatamer/souqna/blob/main/lib/features/main_navigation/presentation/screens/main_navigation_shell.dart"
click node_home "https://github.com/yassatamer/souqna/blob/main/lib/features/home/presentation/screens/home_screen.dart"
click node_products_state "https://github.com/yassatamer/souqna/blob/main/lib/features/home/cubit/products_cubit.dart"
click node_product_repository "https://github.com/yassatamer/souqna/blob/main/lib/features/home/data/repositories/product_repository.dart"
click node_product_model "https://github.com/yassatamer/souqna/blob/main/lib/features/home/data/models/product_model.dart"
click node_auth "https://github.com/yassatamer/souqna/blob/main/lib/features/auth/cubit/auth_cubit.dart"
click node_login "https://github.com/yassatamer/souqna/blob/main/lib/features/auth/presentation/screens/login_screen.dart"
click node_profile "https://github.com/yassatamer/souqna/blob/main/lib/features/profile/presentation/screens/profile_screen.dart"
click node_profile_state "https://github.com/yassatamer/souqna/blob/main/lib/features/profile/cubit/profile_cubit.dart"
click node_profile_repository "https://github.com/yassatamer/souqna/blob/main/lib/features/profile/data/repositories/profile_repository.dart"
click node_my_listings "https://github.com/yassatamer/souqna/blob/main/lib/features/products/presentation/screens/my_listings_screen.dart"
click node_edit_product "https://github.com/yassatamer/souqna/blob/main/lib/features/products/presentation/screens/add_edit_product_screen.dart"
click node_windows_entry "https://github.com/yassatamer/souqna/blob/main/windows/runner/main.cpp"
click node_flutter_window "https://github.com/yassatamer/souqna/blob/main/windows/runner/flutter_window.cpp"
click node_win32_window "https://github.com/yassatamer/souqna/blob/main/windows/runner/win32_window.cpp"
click node_plugin_registrar "https://github.com/yassatamer/souqna/blob/main/windows/flutter/generated_plugin_registrant.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_entry,node_app_root,node_router,node_splash,node_onboarding,node_navigation,node_user toneBlue
class node_home,node_products_state,node_product_repository,node_product_model toneAmber
class node_auth,node_login,node_profile,node_profile_state,node_profile_repository toneMint
class node_my_listings,node_edit_product toneRose
class node_windows_entry,node_flutter_window,node_win32_window,node_plugin_registrar toneIndigo
```

## Components

### App shell

- [Flutter entry](https://github.com/yassatamer/souqna/blob/main/lib/main.dart): `lib/main.dart`
- [App root](https://github.com/yassatamer/souqna/blob/main/lib/souqna_app.dart): `lib/souqna_app.dart`
- [App router](https://github.com/yassatamer/souqna/blob/main/lib/core/router/app_router.dart): `lib/core/router/app_router.dart`
- [Splash screen](https://github.com/yassatamer/souqna/blob/main/lib/features/splash/presentation/screens/splash_screen.dart): `lib/features/splash/presentation/screens/splash_screen.dart`
- [Onboarding](https://github.com/yassatamer/souqna/blob/main/lib/features/onboarding/presentation/screens/onboarding_screen.dart): `lib/features/onboarding/presentation/screens/onboarding_screen.dart`
- [Main navigation](https://github.com/yassatamer/souqna/blob/main/lib/features/main_navigation/presentation/screens/main_navigation_shell.dart): `lib/features/main_navigation/presentation/screens/main_navigation_shell.dart`

### Marketplace browsing

- [Home screen](https://github.com/yassatamer/souqna/blob/main/lib/features/home/presentation/screens/home_screen.dart): `lib/features/home/presentation/screens/home_screen.dart`
- [Product state](https://github.com/yassatamer/souqna/blob/main/lib/features/home/cubit/products_cubit.dart): `lib/features/home/cubit/products_cubit.dart`
- [Product repository](https://github.com/yassatamer/souqna/blob/main/lib/features/home/data/repositories/product_repository.dart): `lib/features/home/data/repositories/product_repository.dart`
- [Product model](https://github.com/yassatamer/souqna/blob/main/lib/features/home/data/models/product_model.dart): `lib/features/home/data/models/product_model.dart`

### Account access

- [Authentication](https://github.com/yassatamer/souqna/blob/main/lib/features/auth/cubit/auth_cubit.dart): `lib/features/auth/cubit/auth_cubit.dart`
- [Login and registration](https://github.com/yassatamer/souqna/blob/main/lib/features/auth/presentation/screens/login_screen.dart): `lib/features/auth/presentation/screens/login_screen.dart`
- [Profile screen](https://github.com/yassatamer/souqna/blob/main/lib/features/profile/presentation/screens/profile_screen.dart): `lib/features/profile/presentation/screens/profile_screen.dart`
- [Profile state](https://github.com/yassatamer/souqna/blob/main/lib/features/profile/cubit/profile_cubit.dart): `lib/features/profile/cubit/profile_cubit.dart`
- [Profile repository](https://github.com/yassatamer/souqna/blob/main/lib/features/profile/data/repositories/profile_repository.dart): `lib/features/profile/data/repositories/profile_repository.dart`

### Listing management

- [My listings](https://github.com/yassatamer/souqna/blob/main/lib/features/products/presentation/screens/my_listings_screen.dart): `lib/features/products/presentation/screens/my_listings_screen.dart`
- [Edit product](https://github.com/yassatamer/souqna/blob/main/lib/features/products/presentation/screens/add_edit_product_screen.dart): `lib/features/products/presentation/screens/add_edit_product_screen.dart`

### Platform host

- [Windows entry](https://github.com/yassatamer/souqna/blob/main/windows/runner/main.cpp): `windows/runner/main.cpp`
- [Flutter window](https://github.com/yassatamer/souqna/blob/main/windows/runner/flutter_window.cpp): `windows/runner/flutter_window.cpp`
- [Win32 window](https://github.com/yassatamer/souqna/blob/main/windows/runner/win32_window.cpp): `windows/runner/win32_window.cpp`
- [Plugin registrar](https://github.com/yassatamer/souqna/blob/main/windows/flutter/generated_plugin_registrant.h): `windows/flutter/generated_plugin_registrant.h`

### Other components

- **User**

## Connections

- Windows entry → Flutter window: creates (evidence: `windows/runner/main.cpp`)
- Flutter window → Win32 window: inherits
- Flutter window → Plugin registrar: registers plugins (evidence: `windows/runner/flutter_window.cpp`)
