# fleetby/pomotask architecture

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

- Interactive diagram: https://gitdiagram.com/fleetby/pomotask
- Repository: https://github.com/fleetby/pomotask

## Overview

PomoTask is a cross-platform Flutter Pomodoro productivity app. Users manage tasks, start and control work/break sessions, and review estimated completion time as Pomodoro cycles progress; completed tasks can be restored or cleared. The graph preserves the documented timer, task, and progress capabilities and represents the listed data and presentation layers. README statements support the product workflow; Dart implementation excerpts were not provided, so internal call relationships are not asserted.

Main entry points: [`lib/presentation/widgets/tasks_body.dart`](https://github.com/fleetby/pomotask/blob/master/lib/presentation/widgets/tasks_body.dart) (Task views), [`lib/presentation/blocs/timer/timer_bloc.dart`](https://github.com/fleetby/pomotask/blob/master/lib/presentation/blocs/timer/timer_bloc.dart) (Timer workflow), [`lib/main.dart`](https://github.com/fleetby/pomotask/blob/master/lib/main.dart) (App entry), [`lib/presentation/app_router.dart`](https://github.com/fleetby/pomotask/blob/master/lib/presentation/app_router.dart) (App navigation)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_client["App experience"]
  node_entry["App entry<br/>[main.dart]"]
  node_navigation["App navigation<br/>[app_router.dart]"]
  node_pages["App pages"]
  node_settings_ui["Settings<br/>[settings_page.dart]"]
end

subgraph group_focus["Focus workflow"]
  node_timer_ui["Timer display"]
  node_timer_state["Timer workflow<br/>[timer_bloc.dart]"]
  node_pomodoro_state["Pomodoro cycles<br/>[pomodoro_bloc.dart]"]
  node_estimate["Time estimates"]
end

subgraph group_tasks["Task management"]
  node_task_ui["Task views<br/>[tasks_body.dart]"]
  node_task_create["Task creation"]
  node_task_details["Task details"]
  node_task_list["Task list state"]
  node_task_use_cases["Task operations"]
end

subgraph group_data["Data layer"]
  node_task_repository["Task repository"]
  node_task_database[("Task database<br/>[app_db.dart]")]
  node_settings_repository["Settings storage"]
end

node_user(("User"))

node_user -->|"uses"| node_entry
node_entry -.-> node_navigation
node_navigation -.-> node_pages
node_user -->|"starts sessions"| node_timer_ui
node_timer_ui -.-> node_timer_state
node_timer_state -.-> node_pomodoro_state
node_timer_state -->|"completes tasks"| node_task_use_cases
node_user -->|"manages tasks"| node_task_ui
node_task_ui -.-> node_task_create
node_task_ui -.-> node_task_list
node_task_ui -.-> node_task_details
node_task_use_cases -.-> node_task_repository
node_task_repository -.-> node_task_database
node_user -->|"reviews progress"| node_estimate
node_user -.->|"configures preferences"| node_settings_ui
node_settings_ui -.-> node_settings_repository

click node_entry "https://github.com/fleetby/pomotask/blob/master/lib/main.dart"
click node_navigation "https://github.com/fleetby/pomotask/blob/master/lib/presentation/app_router.dart"
click node_pages "https://github.com/fleetby/pomotask/tree/master/lib/presentation/pages"
click node_timer_ui "https://github.com/fleetby/pomotask/blob/master/lib/presentation/widgets/circular_timer.dart"
click node_timer_state "https://github.com/fleetby/pomotask/blob/master/lib/presentation/blocs/timer/timer_bloc.dart"
click node_pomodoro_state "https://github.com/fleetby/pomotask/blob/master/lib/presentation/blocs/pomodoro/pomodoro_bloc.dart"
click node_estimate "https://github.com/fleetby/pomotask/blob/master/lib/domain/use_cases/get_est_pomodoro_duration_use_case.dart"
click node_task_ui "https://github.com/fleetby/pomotask/blob/master/lib/presentation/widgets/tasks_body.dart"
click node_task_create "https://github.com/fleetby/pomotask/blob/master/lib/presentation/blocs/create_task/create_task_bloc.dart"
click node_task_details "https://github.com/fleetby/pomotask/blob/master/lib/presentation/blocs/task_details/task_details_bloc.dart"
click node_task_list "https://github.com/fleetby/pomotask/blob/master/lib/presentation/blocs/task_list/task_list_bloc.dart"
click node_task_use_cases "https://github.com/fleetby/pomotask/tree/master/lib/domain/use_cases"
click node_task_repository "https://github.com/fleetby/pomotask/blob/master/lib/data/repositories/tasks_repository_impl.dart"
click node_task_database "https://github.com/fleetby/pomotask/blob/master/lib/data/app_db.dart"
click node_settings_ui "https://github.com/fleetby/pomotask/blob/master/lib/presentation/pages/settings_page.dart"
click node_settings_repository "https://github.com/fleetby/pomotask/blob/master/lib/data/repositories/settings_repository_impl.dart"

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_navigation,node_pages,node_settings_ui,node_user toneBlue
class node_timer_ui,node_timer_state,node_pomodoro_state,node_estimate toneAmber
class node_task_ui,node_task_create,node_task_details,node_task_list,node_task_use_cases toneMint
class node_task_repository,node_task_database,node_settings_repository toneRose
```

## Components

### App experience

- [App entry](https://github.com/fleetby/pomotask/blob/master/lib/main.dart): `lib/main.dart`
- [App navigation](https://github.com/fleetby/pomotask/blob/master/lib/presentation/app_router.dart): `lib/presentation/app_router.dart`
- [App pages](https://github.com/fleetby/pomotask/tree/master/lib/presentation/pages): `lib/presentation/pages`
- [Settings](https://github.com/fleetby/pomotask/blob/master/lib/presentation/pages/settings_page.dart): `lib/presentation/pages/settings_page.dart`

### Focus workflow

- [Timer display](https://github.com/fleetby/pomotask/blob/master/lib/presentation/widgets/circular_timer.dart): `lib/presentation/widgets/circular_timer.dart`
- [Timer workflow](https://github.com/fleetby/pomotask/blob/master/lib/presentation/blocs/timer/timer_bloc.dart): `lib/presentation/blocs/timer/timer_bloc.dart`
- [Pomodoro cycles](https://github.com/fleetby/pomotask/blob/master/lib/presentation/blocs/pomodoro/pomodoro_bloc.dart): `lib/presentation/blocs/pomodoro/pomodoro_bloc.dart`
- [Time estimates](https://github.com/fleetby/pomotask/blob/master/lib/domain/use_cases/get_est_pomodoro_duration_use_case.dart): `lib/domain/use_cases/get_est_pomodoro_duration_use_case.dart`

### Task management

- [Task views](https://github.com/fleetby/pomotask/blob/master/lib/presentation/widgets/tasks_body.dart): `lib/presentation/widgets/tasks_body.dart`
- [Task creation](https://github.com/fleetby/pomotask/blob/master/lib/presentation/blocs/create_task/create_task_bloc.dart): `lib/presentation/blocs/create_task/create_task_bloc.dart`
- [Task details](https://github.com/fleetby/pomotask/blob/master/lib/presentation/blocs/task_details/task_details_bloc.dart): `lib/presentation/blocs/task_details/task_details_bloc.dart`
- [Task list state](https://github.com/fleetby/pomotask/blob/master/lib/presentation/blocs/task_list/task_list_bloc.dart): `lib/presentation/blocs/task_list/task_list_bloc.dart`
- [Task operations](https://github.com/fleetby/pomotask/tree/master/lib/domain/use_cases): `lib/domain/use_cases`

### Data layer

- [Task repository](https://github.com/fleetby/pomotask/blob/master/lib/data/repositories/tasks_repository_impl.dart): `lib/data/repositories/tasks_repository_impl.dart`
- [Task database](https://github.com/fleetby/pomotask/blob/master/lib/data/app_db.dart): `lib/data/app_db.dart`
- [Settings storage](https://github.com/fleetby/pomotask/blob/master/lib/data/repositories/settings_repository_impl.dart): `lib/data/repositories/settings_repository_impl.dart`

### Other components

- **User**

## Connections

- User → App entry: uses (evidence: `README.md`)
- App entry → App navigation
- App navigation → App pages
- User → Timer display: starts sessions (evidence: `README.md`)
- Timer display → Timer workflow
- Timer workflow → Pomodoro cycles
- Timer workflow → Task operations: completes tasks (evidence: `README.md`)
- User → Task views: manages tasks (evidence: `README.md`)
- Task views → Task creation
- Task views → Task list state
- Task views → Task details
- Task operations → Task repository
- Task repository → Task database
- User → Time estimates: reviews progress (evidence: `README.md`)
- User → Settings: configures preferences
- Settings → Settings storage
