# hamada-develop/my_portfolio architecture

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

- Interactive diagram: https://gitdiagram.com/hamada-develop/my_portfolio
- Repository: https://github.com/hamada-develop/my_portfolio

## Overview

This is a Flutter portfolio application, with native runners for mobile, desktop, and web targets. Its apparent user journey is viewing the home screen and its About, work-history, skills, projects, and contact sections; the tree also shows theme state, responsive navigation, and portfolio data/model layers. Dart sources were not excerpted, and the README only describes a starter Flutter app, so application-level links below are marked unverified rather than presented as inspected call flow.

Main entry points: [`lib/presentation/screens/home_view.dart`](https://github.com/hamada-develop/my_portfolio/blob/main/lib/presentation/screens/home_view.dart) (Home screen), [`lib/data/repositories/portfolio_data.dart`](https://github.com/hamada-develop/my_portfolio/blob/main/lib/data/repositories/portfolio_data.dart) (Portfolio data), [`lib/app.dart`](https://github.com/hamada-develop/my_portfolio/blob/main/lib/app.dart) (App shell), [`lib/presentation/widgets/sections/about_section.dart`](https://github.com/hamada-develop/my_portfolio/blob/main/lib/presentation/widgets/sections/about_section.dart) (About section)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_presentation["Portfolio UI"]
  node_home["Home screen<br/>[home_view.dart]"]
  node_about["About section<br/>[about_section.dart]"]
  node_history["Work history"]
  node_skills["Skills section"]
  node_projects["Projects section"]
  node_contact["Contact section"]
  node_common_ui["Shared UI"]
  node_responsive_nav["Responsive navigation"]
end

subgraph group_state["App State"]
  node_home_state["Home controller<br/>[home_cubit.dart]"]
  node_theme_state["Theme controller<br/>[theme_cubit.dart]"]
end

subgraph group_content["Portfolio Content"]
  node_portfolio_data["Portfolio data"]
  node_experience["Experience model"]
  node_project["Project model<br/>[project_model.dart]"]
  node_skill["Skill model<br/>[skill_model.dart]"]
end

subgraph group_runtime["Platform Runtime"]
  node_entry["Flutter entry<br/>[main.dart]"]
  node_app["App shell<br/>[app.dart]"]
  node_windows_runner["Windows runner<br/>[main.cpp]"]
  node_windows_window["Flutter window<br/>[flutter_window.h]"]
  node_win32_window["Win32 window<br/>[win32_window.h]"]
  node_linux_runner["Linux runner<br/>[main.cc]"]
  node_linux_app["Linux app host<br/>[my_application.h]"]
end

node_visitor(("Portfolio visitor"))

node_visitor -.->|"opens app"| node_entry
node_entry -.->|"starts"| node_app
node_app -.->|"shows"| node_home
node_home -.->|"presents"| node_about
node_home -.->|"presents"| node_history
node_home -.->|"presents"| node_skills
node_home -.->|"presents"| node_projects
node_home -.->|"presents"| node_contact
node_home -.->|"uses state"| node_home_state
node_home -.->|"uses"| node_responsive_nav
node_app -.->|"uses state"| node_theme_state
node_about -.->|"reads"| node_portfolio_data
node_history -.->|"reads"| node_portfolio_data
node_skills -.->|"reads"| node_portfolio_data
node_projects -.->|"reads"| node_portfolio_data
node_portfolio_data -.->|"uses model"| node_experience
node_portfolio_data -.->|"uses model"| node_project
node_portfolio_data -.->|"uses model"| node_skill
node_home -.->|"uses"| node_common_ui
node_windows_runner -->|"creates"| node_windows_window
node_windows_window -->|"inherits"| node_win32_window
node_linux_runner -->|"creates"| node_linux_app

click node_entry "https://github.com/hamada-develop/my_portfolio/blob/main/lib/main.dart"
click node_app "https://github.com/hamada-develop/my_portfolio/blob/main/lib/app.dart"
click node_home "https://github.com/hamada-develop/my_portfolio/blob/main/lib/presentation/screens/home_view.dart"
click node_about "https://github.com/hamada-develop/my_portfolio/blob/main/lib/presentation/widgets/sections/about_section.dart"
click node_history "https://github.com/hamada-develop/my_portfolio/blob/main/lib/presentation/widgets/sections/work_history_section.dart"
click node_skills "https://github.com/hamada-develop/my_portfolio/blob/main/lib/presentation/widgets/sections/skills_section.dart"
click node_projects "https://github.com/hamada-develop/my_portfolio/blob/main/lib/presentation/widgets/sections/projects_section.dart"
click node_contact "https://github.com/hamada-develop/my_portfolio/blob/main/lib/presentation/widgets/sections/contact_section.dart"
click node_common_ui "https://github.com/hamada-develop/my_portfolio/tree/main/lib/presentation/widgets/common"
click node_responsive_nav "https://github.com/hamada-develop/my_portfolio/tree/main/lib/core/widgets"
click node_home_state "https://github.com/hamada-develop/my_portfolio/blob/main/lib/presentation/controller/home_cubit.dart"
click node_theme_state "https://github.com/hamada-develop/my_portfolio/blob/main/lib/presentation/controller/theme_cubit.dart"
click node_portfolio_data "https://github.com/hamada-develop/my_portfolio/blob/main/lib/data/repositories/portfolio_data.dart"
click node_experience "https://github.com/hamada-develop/my_portfolio/blob/main/lib/data/models/experience_model.dart"
click node_project "https://github.com/hamada-develop/my_portfolio/blob/main/lib/data/models/project_model.dart"
click node_skill "https://github.com/hamada-develop/my_portfolio/blob/main/lib/data/models/skill_model.dart"
click node_windows_runner "https://github.com/hamada-develop/my_portfolio/blob/main/windows/runner/main.cpp"
click node_windows_window "https://github.com/hamada-develop/my_portfolio/blob/main/windows/runner/flutter_window.h"
click node_win32_window "https://github.com/hamada-develop/my_portfolio/blob/main/windows/runner/win32_window.h"
click node_linux_runner "https://github.com/hamada-develop/my_portfolio/blob/main/linux/runner/main.cc"
click node_linux_app "https://github.com/hamada-develop/my_portfolio/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_home,node_about,node_history,node_skills,node_projects,node_contact,node_common_ui,node_responsive_nav toneBlue
class node_home_state,node_theme_state toneAmber
class node_portfolio_data,node_experience,node_project,node_skill toneMint
class node_entry,node_app,node_windows_runner,node_windows_window,node_win32_window,node_linux_runner,node_linux_app toneRose
class node_visitor toneIndigo
```

## Components

### Portfolio UI

- [Home screen](https://github.com/hamada-develop/my_portfolio/blob/main/lib/presentation/screens/home_view.dart): `lib/presentation/screens/home_view.dart`
- [About section](https://github.com/hamada-develop/my_portfolio/blob/main/lib/presentation/widgets/sections/about_section.dart): `lib/presentation/widgets/sections/about_section.dart`
- [Work history](https://github.com/hamada-develop/my_portfolio/blob/main/lib/presentation/widgets/sections/work_history_section.dart): `lib/presentation/widgets/sections/work_history_section.dart`
- [Skills section](https://github.com/hamada-develop/my_portfolio/blob/main/lib/presentation/widgets/sections/skills_section.dart): `lib/presentation/widgets/sections/skills_section.dart`
- [Projects section](https://github.com/hamada-develop/my_portfolio/blob/main/lib/presentation/widgets/sections/projects_section.dart): `lib/presentation/widgets/sections/projects_section.dart`
- [Contact section](https://github.com/hamada-develop/my_portfolio/blob/main/lib/presentation/widgets/sections/contact_section.dart): `lib/presentation/widgets/sections/contact_section.dart`
- [Shared UI](https://github.com/hamada-develop/my_portfolio/tree/main/lib/presentation/widgets/common): `lib/presentation/widgets/common`
- [Responsive navigation](https://github.com/hamada-develop/my_portfolio/tree/main/lib/core/widgets): `lib/core/widgets`

### App State

- [Home controller](https://github.com/hamada-develop/my_portfolio/blob/main/lib/presentation/controller/home_cubit.dart): `lib/presentation/controller/home_cubit.dart`
- [Theme controller](https://github.com/hamada-develop/my_portfolio/blob/main/lib/presentation/controller/theme_cubit.dart): `lib/presentation/controller/theme_cubit.dart`

### Portfolio Content

- [Portfolio data](https://github.com/hamada-develop/my_portfolio/blob/main/lib/data/repositories/portfolio_data.dart): `lib/data/repositories/portfolio_data.dart`
- [Experience model](https://github.com/hamada-develop/my_portfolio/blob/main/lib/data/models/experience_model.dart): `lib/data/models/experience_model.dart`
- [Project model](https://github.com/hamada-develop/my_portfolio/blob/main/lib/data/models/project_model.dart): `lib/data/models/project_model.dart`
- [Skill model](https://github.com/hamada-develop/my_portfolio/blob/main/lib/data/models/skill_model.dart): `lib/data/models/skill_model.dart`

### Platform Runtime

- [Flutter entry](https://github.com/hamada-develop/my_portfolio/blob/main/lib/main.dart): `lib/main.dart`
- [App shell](https://github.com/hamada-develop/my_portfolio/blob/main/lib/app.dart): `lib/app.dart`
- [Windows runner](https://github.com/hamada-develop/my_portfolio/blob/main/windows/runner/main.cpp): `windows/runner/main.cpp`
- [Flutter window](https://github.com/hamada-develop/my_portfolio/blob/main/windows/runner/flutter_window.h): `windows/runner/flutter_window.h`
- [Win32 window](https://github.com/hamada-develop/my_portfolio/blob/main/windows/runner/win32_window.h): `windows/runner/win32_window.h`
- [Linux runner](https://github.com/hamada-develop/my_portfolio/blob/main/linux/runner/main.cc): `linux/runner/main.cc`
- [Linux app host](https://github.com/hamada-develop/my_portfolio/blob/main/linux/runner/my_application.h): `linux/runner/my_application.h`

### Other components

- **Portfolio visitor**

## Connections

- Portfolio visitor → Flutter entry: opens app
- Flutter entry → App shell: starts
- App shell → Home screen: shows
- Home screen → About section: presents
- Home screen → Work history: presents
- Home screen → Skills section: presents
- Home screen → Projects section: presents
- Home screen → Contact section: presents
- Home screen → Home controller: uses state
- Home screen → Responsive navigation: uses
- App shell → Theme controller: uses state
- About section → Portfolio data: reads
- Work history → Portfolio data: reads
- Skills section → Portfolio data: reads
- Projects section → Portfolio data: reads
- Portfolio data → Experience model: uses model
- Portfolio data → Project model: uses model
- Portfolio data → Skill model: uses model
- Home screen → Shared UI: uses
- Windows runner → Flutter window: creates (evidence: `windows/runner/main.cpp`)
- Flutter window → Win32 window: inherits (evidence: `windows/runner/flutter_window.h`)
- Linux runner → Linux app host: creates (evidence: `linux/runner/main.cc`)
