# gmelan2002/mydo architecture

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

- Interactive diagram: https://gitdiagram.com/gmelan2002/mydo
- Repository: https://github.com/gmelan2002/mydo

## Overview

MyDo is a Flutter daily task manager. Users manage tasks, assign dates, search or filter them, and choose a persisted theme; task and theme preferences are stored locally. The README documents these capabilities, but the Dart entry point was not excerpted, so its internal calls and exact UI composition cannot be verified. The graph also includes sampled Linux and Windows launch/window infrastructure; those native hosts start Flutter rather than implement task behavior.

Main entry points: [`lib/main.dart`](https://github.com/gmelan2002/mydo/blob/main/lib/main.dart) (Task management), [`windows/runner/flutter_window.h`](https://github.com/gmelan2002/mydo/blob/main/windows/runner/flutter_window.h) (Flutter window), [`linux/runner/my_application.h`](https://github.com/gmelan2002/mydo/blob/main/linux/runner/my_application.h) (Linux application), [`windows/runner/win32_window.cpp`](https://github.com/gmelan2002/mydo/blob/main/windows/runner/win32_window.cpp) (Win32 window)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_product["Task management"]
  node_task_ui["Task management<br/>[main.dart]"]
  node_task_ops["Task operations<br/>[main.dart]"]
end

subgraph group_features["User features"]
  node_date_picker["Date tracking<br/>[main.dart]"]
  node_search_filter["Search and filters<br/>[main.dart]"]
  node_theme["Theme toggle<br/>[main.dart]"]
  node_splash["Animated splash<br/>[main.dart]"]
end

subgraph group_storage["Local persistence"]
  node_local_store[("Preferences storage<br/>[main.dart]")]
end

subgraph group_desktop["Desktop hosts"]
  node_linux_entry["Linux entry<br/>[main.cc]"]
  node_linux_app["Linux application<br/>[my_application.h]"]
  node_win_entry["Windows entry<br/>[main.cpp]"]
  node_flutter_window["Flutter window<br/>[flutter_window.h]"]
  node_win_window["Win32 window<br/>[win32_window.cpp]"]
  node_mac_plugins["macOS plugin registration"]
  node_linux_plugins["Linux plugin registration"]
  node_windows_plugins["Windows plugin registration"]
end

node_user(("App user"))

node_user -->|"manages tasks"| node_task_ui
node_user -->|"assigns dates"| node_date_picker
node_user -->|"searches tasks"| node_search_filter
node_user -->|"chooses theme"| node_theme
node_task_ui -->|"supports CRUD"| node_task_ops
node_task_ops -->|"saves tasks"| node_local_store
node_theme -->|"persists preference"| node_local_store
node_linux_entry -->|"creates app"| node_linux_app
node_linux_app -.->|"hosts Flutter app"| node_task_ui
node_win_entry -->|"creates window"| node_flutter_window
node_flutter_window -->|"extends window"| node_win_window
node_win_window -.->|"hosts content"| node_flutter_window
node_mac_plugins -->|"registers preferences plugin"| node_local_store

click node_task_ui "https://github.com/gmelan2002/mydo/blob/main/lib/main.dart"
click node_task_ops "https://github.com/gmelan2002/mydo/blob/main/lib/main.dart"
click node_date_picker "https://github.com/gmelan2002/mydo/blob/main/lib/main.dart"
click node_search_filter "https://github.com/gmelan2002/mydo/blob/main/lib/main.dart"
click node_theme "https://github.com/gmelan2002/mydo/blob/main/lib/main.dart"
click node_splash "https://github.com/gmelan2002/mydo/blob/main/lib/main.dart"
click node_local_store "https://github.com/gmelan2002/mydo/blob/main/lib/main.dart"
click node_linux_entry "https://github.com/gmelan2002/mydo/blob/main/linux/runner/main.cc"
click node_linux_app "https://github.com/gmelan2002/mydo/blob/main/linux/runner/my_application.h"
click node_win_entry "https://github.com/gmelan2002/mydo/blob/main/windows/runner/main.cpp"
click node_flutter_window "https://github.com/gmelan2002/mydo/blob/main/windows/runner/flutter_window.h"
click node_win_window "https://github.com/gmelan2002/mydo/blob/main/windows/runner/win32_window.cpp"
click node_mac_plugins "https://github.com/gmelan2002/mydo/blob/main/macos/Flutter/GeneratedPluginRegistrant.swift"
click node_linux_plugins "https://github.com/gmelan2002/mydo/blob/main/linux/flutter/generated_plugin_registrant.h"
click node_windows_plugins "https://github.com/gmelan2002/mydo/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_task_ui,node_task_ops,node_user toneBlue
class node_date_picker,node_search_filter,node_theme,node_splash toneAmber
class node_local_store toneMint
class node_linux_entry,node_linux_app,node_win_entry,node_flutter_window,node_win_window,node_mac_plugins,node_linux_plugins,node_windows_plugins toneRose
```

## Components

### Task management

- [Task management](https://github.com/gmelan2002/mydo/blob/main/lib/main.dart): `lib/main.dart`
- [Task operations](https://github.com/gmelan2002/mydo/blob/main/lib/main.dart): `lib/main.dart`

### User features

- [Date tracking](https://github.com/gmelan2002/mydo/blob/main/lib/main.dart): `lib/main.dart`
- [Search and filters](https://github.com/gmelan2002/mydo/blob/main/lib/main.dart): `lib/main.dart`
- [Theme toggle](https://github.com/gmelan2002/mydo/blob/main/lib/main.dart): `lib/main.dart`
- [Animated splash](https://github.com/gmelan2002/mydo/blob/main/lib/main.dart): `lib/main.dart`

### Local persistence

- [Preferences storage](https://github.com/gmelan2002/mydo/blob/main/lib/main.dart): `lib/main.dart`

### Desktop hosts

- [Linux entry](https://github.com/gmelan2002/mydo/blob/main/linux/runner/main.cc): `linux/runner/main.cc`
- [Linux application](https://github.com/gmelan2002/mydo/blob/main/linux/runner/my_application.h): `linux/runner/my_application.h`
- [Windows entry](https://github.com/gmelan2002/mydo/blob/main/windows/runner/main.cpp): `windows/runner/main.cpp`
- [Flutter window](https://github.com/gmelan2002/mydo/blob/main/windows/runner/flutter_window.h): `windows/runner/flutter_window.h`
- [Win32 window](https://github.com/gmelan2002/mydo/blob/main/windows/runner/win32_window.cpp): `windows/runner/win32_window.cpp`
- [macOS plugin registration](https://github.com/gmelan2002/mydo/blob/main/macos/Flutter/GeneratedPluginRegistrant.swift): `macos/Flutter/GeneratedPluginRegistrant.swift`
- [Linux plugin registration](https://github.com/gmelan2002/mydo/blob/main/linux/flutter/generated_plugin_registrant.h): `linux/flutter/generated_plugin_registrant.h`
- [Windows plugin registration](https://github.com/gmelan2002/mydo/blob/main/windows/flutter/generated_plugin_registrant.h): `windows/flutter/generated_plugin_registrant.h`

### Other components

- **App user**

## Connections

- App user → Task management: manages tasks (evidence: `README.md`)
- App user → Date tracking: assigns dates (evidence: `README.md`)
- App user → Search and filters: searches tasks (evidence: `README.md`)
- App user → Theme toggle: chooses theme (evidence: `README.md`)
- Task management → Task operations: supports CRUD (evidence: `README.md`)
- Task operations → Preferences storage: saves tasks (evidence: `README.md`)
- Theme toggle → Preferences storage: persists preference (evidence: `README.md`)
- Linux entry → Linux application: creates app (evidence: `linux/runner/main.cc`)
- Linux application → Task management: hosts Flutter app
- Windows entry → Flutter window: creates window (evidence: `windows/runner/main.cpp`)
- Flutter window → Win32 window: extends window (evidence: `windows/runner/flutter_window.h`)
- Win32 window → Flutter window: hosts content
- macOS plugin registration → Preferences storage: registers preferences plugin (evidence: `macos/Flutter/GeneratedPluginRegistrant.swift`)
