# ahmedsalim90/to_do_app architecture

> Architecture diagram of the GitHub repository ahmedsalim90/to_do_app, 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/ahmedsalim90/to_do_app
- Repository: https://github.com/ahmedsalim90/to_do_app

## Overview

Tasko is a small Flutter to-do app. The user adds a task, toggles its completion or swipes to delete it; HomePage owns the in-memory task list and updates the UI, while TodoList renders each task row. The README documents these interactions, but the Dart sources were not sampled, so those edges cite the README. Native runner files are platform hosting scaffolding, not separate task-processing stages.

Main entry points: [`lib/pages/home_page.dart`](https://github.com/ahmedsalim90/to_do_app/blob/main/lib/pages/home_page.dart) (HomePage state), [`lib/main.dart`](https://github.com/ahmedsalim90/to_do_app/blob/main/lib/main.dart) (Flutter entry), [`lib/utils/todo_list.dart`](https://github.com/ahmedsalim90/to_do_app/blob/main/lib/utils/todo_list.dart) (Swipe action), [`windows/runner/flutter_window.h`](https://github.com/ahmedsalim90/to_do_app/blob/main/windows/runner/flutter_window.h) (Windows Flutter host)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["Tasko app"]
  node_entry["Flutter entry<br/>[main.dart]"]
  node_home["HomePage state<br/>[home_page.dart]"]
  node_tasks["In-memory tasks<br/>[home_page.dart]"]
  node_row["TodoList row<br/>[todo_list.dart]"]
  node_slidable["Swipe action<br/>[todo_list.dart]"]
end

subgraph group_hosts["Platform hosts"]
  node_windows["Windows Flutter host<br/>[flutter_window.h]"]
  node_win32["Windows window<br/>[win32_window.cpp]"]
  node_linux["Linux application<br/>[my_application.h]"]
  node_linux_plugins["Linux plugin registry"]
  node_mac_plugins["macOS plugin registry"]
  node_windows_plugins["Windows plugin registry"]
end

node_user(("User"))

node_user -.->|"opens app"| node_entry
node_entry -.->|"starts screen"| node_home
node_user -->|"adds or toggles"| node_home
node_home -->|"updates state"| node_tasks
node_home -->|"renders rows"| node_row
node_user -->|"swipes task"| node_slidable
node_slidable -->|"deletes task"| node_home
node_windows -->|"inherits window"| node_win32
node_linux -.->|"registers plugins"| node_linux_plugins

click node_entry "https://github.com/ahmedsalim90/to_do_app/blob/main/lib/main.dart"
click node_home "https://github.com/ahmedsalim90/to_do_app/blob/main/lib/pages/home_page.dart"
click node_tasks "https://github.com/ahmedsalim90/to_do_app/blob/main/lib/pages/home_page.dart"
click node_row "https://github.com/ahmedsalim90/to_do_app/blob/main/lib/utils/todo_list.dart"
click node_slidable "https://github.com/ahmedsalim90/to_do_app/blob/main/lib/utils/todo_list.dart"
click node_windows "https://github.com/ahmedsalim90/to_do_app/blob/main/windows/runner/flutter_window.h"
click node_win32 "https://github.com/ahmedsalim90/to_do_app/blob/main/windows/runner/win32_window.cpp"
click node_linux "https://github.com/ahmedsalim90/to_do_app/blob/main/linux/runner/my_application.h"
click node_linux_plugins "https://github.com/ahmedsalim90/to_do_app/blob/main/linux/flutter/generated_plugin_registrant.h"
click node_mac_plugins "https://github.com/ahmedsalim90/to_do_app/blob/main/macos/Flutter/GeneratedPluginRegistrant.swift"
click node_windows_plugins "https://github.com/ahmedsalim90/to_do_app/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_home,node_tasks,node_row,node_slidable,node_user toneBlue
class node_windows,node_win32,node_linux,node_linux_plugins,node_mac_plugins,node_windows_plugins toneAmber
```

## Components

### Tasko app

- [Flutter entry](https://github.com/ahmedsalim90/to_do_app/blob/main/lib/main.dart): `lib/main.dart`
- [HomePage state](https://github.com/ahmedsalim90/to_do_app/blob/main/lib/pages/home_page.dart): `lib/pages/home_page.dart`
- [In-memory tasks](https://github.com/ahmedsalim90/to_do_app/blob/main/lib/pages/home_page.dart): `lib/pages/home_page.dart`
- [TodoList row](https://github.com/ahmedsalim90/to_do_app/blob/main/lib/utils/todo_list.dart): `lib/utils/todo_list.dart`
- [Swipe action](https://github.com/ahmedsalim90/to_do_app/blob/main/lib/utils/todo_list.dart): `lib/utils/todo_list.dart`

### Platform hosts

- [Windows Flutter host](https://github.com/ahmedsalim90/to_do_app/blob/main/windows/runner/flutter_window.h): `windows/runner/flutter_window.h`
- [Windows window](https://github.com/ahmedsalim90/to_do_app/blob/main/windows/runner/win32_window.cpp): `windows/runner/win32_window.cpp`
- [Linux application](https://github.com/ahmedsalim90/to_do_app/blob/main/linux/runner/my_application.h): `linux/runner/my_application.h`
- [Linux plugin registry](https://github.com/ahmedsalim90/to_do_app/blob/main/linux/flutter/generated_plugin_registrant.h): `linux/flutter/generated_plugin_registrant.h`
- [macOS plugin registry](https://github.com/ahmedsalim90/to_do_app/blob/main/macos/Flutter/GeneratedPluginRegistrant.swift): `macos/Flutter/GeneratedPluginRegistrant.swift`
- [Windows plugin registry](https://github.com/ahmedsalim90/to_do_app/blob/main/windows/flutter/generated_plugin_registrant.h): `windows/flutter/generated_plugin_registrant.h`

### Other components

- **User**

## Connections

- User → Flutter entry: opens app
- Flutter entry → HomePage state: starts screen
- User → HomePage state: adds or toggles (evidence: `README.md`)
- HomePage state → In-memory tasks: updates state (evidence: `README.md`)
- HomePage state → TodoList row: renders rows (evidence: `README.md`)
- User → Swipe action: swipes task (evidence: `README.md`)
- Swipe action → HomePage state: deletes task (evidence: `README.md`)
- Windows Flutter host → Windows window: inherits window (evidence: `windows/runner/flutter_window.h`)
- Linux application → Linux plugin registry: registers plugins
