# kaiquech/programacao-movel architecture

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

- Interactive diagram: https://gitdiagram.com/kaiquech/programacao-movel
- Repository: https://github.com/kaiquech/programacao-movel

## Overview

This is a Flutter task-list app backed by Cloud Firestore. The principal workflow is viewing and filtering tasks, creating or editing a task with a due date and complexity, and persisting changes; users can also toggle completion or delete tasks. The README documents real-time, due-date-ordered listing and overdue highlighting. Source excerpts do not include the Dart implementation, so screen-to-repository calls are shown only as unverified links; documented capabilities and storage behavior are retained.

Main entry points: [`lib/screens/lista_tarefas_screen.dart`](https://github.com/kaiquech/programacao-movel/blob/master/lib/screens/lista_tarefas_screen.dart) (Task list), [`lib/screens/formulario_tarefa_screen.dart`](https://github.com/kaiquech/programacao-movel/blob/master/lib/screens/formulario_tarefa_screen.dart) (Task form), [`lib/services/tarefa_repository.dart`](https://github.com/kaiquech/programacao-movel/blob/master/lib/services/tarefa_repository.dart) (Task repository), [`lib/main.dart`](https://github.com/kaiquech/programacao-movel/blob/master/lib/main.dart) (App startup)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_presentation["Task interface"]
  node_list["Task list"]
  node_form["Task form"]
  node_config["Firebase setup help"]
  node_card["Task card<br/>[tarefa_card.dart]"]
  node_delete["Delete confirmation"]
end

subgraph group_domain["Task domain"]
  node_task["Task model<br/>[tarefa.dart]"]
  node_formatters["Date formatting<br/>[formatadores.dart]"]
end

subgraph group_backend["Firebase persistence"]
  node_app["App startup<br/>[main.dart]"]
  node_firebase_options["Firebase options"]
  node_repository["Task repository"]
  node_firestore[("Cloud Firestore")]
end

node_user(("User"))

node_user -->|"views and filters"| node_list
node_user -->|"creates or edits"| node_form
node_user -->|"toggles completion"| node_list
node_user -->|"deletes by swipe"| node_list
node_list -.->|"displays tasks"| node_card
node_form -->|"offers deletion"| node_delete
node_app -->|"initializes with"| node_firebase_options
node_app -->|"shows if unconfigured"| node_config
node_list -.->|"requests task data"| node_repository
node_form -.->|"saves task changes"| node_repository
node_repository -->|"performs CRUD"| node_firestore

click node_list "https://github.com/kaiquech/programacao-movel/blob/master/lib/screens/lista_tarefas_screen.dart"
click node_form "https://github.com/kaiquech/programacao-movel/blob/master/lib/screens/formulario_tarefa_screen.dart"
click node_config "https://github.com/kaiquech/programacao-movel/blob/master/lib/screens/configuracao_firebase_screen.dart"
click node_card "https://github.com/kaiquech/programacao-movel/blob/master/lib/widgets/tarefa_card.dart"
click node_delete "https://github.com/kaiquech/programacao-movel/blob/master/lib/widgets/confirmar_exclusao.dart"
click node_task "https://github.com/kaiquech/programacao-movel/blob/master/lib/models/tarefa.dart"
click node_formatters "https://github.com/kaiquech/programacao-movel/blob/master/lib/utils/formatadores.dart"
click node_app "https://github.com/kaiquech/programacao-movel/blob/master/lib/main.dart"
click node_firebase_options "https://github.com/kaiquech/programacao-movel/blob/master/lib/firebase_options.dart"
click node_repository "https://github.com/kaiquech/programacao-movel/blob/master/lib/services/tarefa_repository.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_list,node_form,node_config,node_card,node_delete,node_user toneBlue
class node_task,node_formatters toneAmber
class node_app,node_firebase_options,node_repository,node_firestore toneMint
```

## Components

### Task interface

- [Task list](https://github.com/kaiquech/programacao-movel/blob/master/lib/screens/lista_tarefas_screen.dart): `lib/screens/lista_tarefas_screen.dart`
- [Task form](https://github.com/kaiquech/programacao-movel/blob/master/lib/screens/formulario_tarefa_screen.dart): `lib/screens/formulario_tarefa_screen.dart`
- [Firebase setup help](https://github.com/kaiquech/programacao-movel/blob/master/lib/screens/configuracao_firebase_screen.dart): `lib/screens/configuracao_firebase_screen.dart`
- [Task card](https://github.com/kaiquech/programacao-movel/blob/master/lib/widgets/tarefa_card.dart): `lib/widgets/tarefa_card.dart`
- [Delete confirmation](https://github.com/kaiquech/programacao-movel/blob/master/lib/widgets/confirmar_exclusao.dart): `lib/widgets/confirmar_exclusao.dart`

### Task domain

- [Task model](https://github.com/kaiquech/programacao-movel/blob/master/lib/models/tarefa.dart): `lib/models/tarefa.dart`
- [Date formatting](https://github.com/kaiquech/programacao-movel/blob/master/lib/utils/formatadores.dart): `lib/utils/formatadores.dart`

### Firebase persistence

- [App startup](https://github.com/kaiquech/programacao-movel/blob/master/lib/main.dart): `lib/main.dart`
- [Firebase options](https://github.com/kaiquech/programacao-movel/blob/master/lib/firebase_options.dart): `lib/firebase_options.dart`
- [Task repository](https://github.com/kaiquech/programacao-movel/blob/master/lib/services/tarefa_repository.dart): `lib/services/tarefa_repository.dart`
- **Cloud Firestore**

### Other components

- **User**

## Connections

- User → Task list: views and filters (evidence: `README.md`)
- User → Task form: creates or edits (evidence: `README.md`)
- User → Task list: toggles completion (evidence: `README.md`)
- User → Task list: deletes by swipe (evidence: `README.md`)
- Task list → Task card: displays tasks
- Task form → Delete confirmation: offers deletion (evidence: `README.md`)
- App startup → Firebase options: initializes with (evidence: `README.md`)
- App startup → Firebase setup help: shows if unconfigured (evidence: `README.md`)
- Task list → Task repository: requests task data
- Task form → Task repository: saves task changes
- Task repository → Cloud Firestore: performs CRUD (evidence: `README.md`)
