# mathconceicion/study_flow architecture

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

- Interactive diagram: https://gitdiagram.com/mathconceicion/study_flow
- Repository: https://github.com/mathconceicion/study_flow

## Overview

StudyFlow is a Flutter ENEM study app. Learners browse locally defined subjects, filter a subject’s content by difficulty, and open content details; a separate branch fetches ENEM questions from api.enem.dev and presents questions, images, alternatives, and answer-key checking. The graph follows the README’s documented capabilities and file structure; Dart implementation excerpts were not provided, so screen wiring and component-level calls are not asserted beyond those documented relationships.

Main entry points: [`lib/screens/home_page.dart`](https://github.com/mathconceicion/study_flow/blob/main/lib/screens/home_page.dart) (Home Screen), [`lib/screens/materia_page.dart`](https://github.com/mathconceicion/study_flow/blob/main/lib/screens/materia_page.dart) (Subject Detail), [`lib/screens/enem_page.dart`](https://github.com/mathconceicion/study_flow/blob/main/lib/screens/enem_page.dart) (Question List), [`lib/services/enem_service.dart`](https://github.com/mathconceicion/study_flow/blob/main/lib/services/enem_service.dart) (ENEM Service)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_learning["Study Content"]
  node_app["App Entry<br/>[main.dart]"]
  node_home["Home Screen<br/>[home_page.dart]"]
  node_subject_screen["Subject Detail<br/>[materia_page.dart]"]
  node_content_screen["Content Detail<br/>[conteudo_page.dart]"]
  node_subject_card["Subject Card<br/>[materia_card.dart]"]
  node_content_card["Content Card<br/>[conteudo_card.dart]"]
end

subgraph group_questions["ENEM Questions"]
  node_question_list["Question List<br/>[enem_page.dart]"]
  node_question_detail["Question Detail"]
  node_enem_service["ENEM Service<br/>[enem_service.dart]"]
  node_enem_api(("ENEM API"))
end

subgraph group_domain["Domain Data"]
  node_study_data["Study Catalog<br/>[dados_estudo.dart]"]
  node_subject_model["Subject Model<br/>[materia.dart]"]
  node_content_model["Content Model<br/>[conteudo.dart]"]
  node_question_model["Question Model<br/>[questao_enem.dart]"]
end

node_learner(("Learner"))

node_learner -->|"opens"| node_app
node_app -.->|"starts"| node_home
node_home -->|"opens subject"| node_subject_screen
node_home -->|"opens questions"| node_question_list
node_subject_screen -->|"opens content"| node_content_screen
node_home -.->|"lists subjects"| node_subject_card
node_subject_screen -.->|"lists filtered content"| node_content_card
node_study_data -.->|"defines subjects"| node_subject_model
node_study_data -.->|"defines content"| node_content_model
node_question_list -->|"requests questions"| node_enem_service
node_enem_service -->|"fetches questions"| node_enem_api
node_enem_service -.->|"maps response"| node_question_model
node_question_list -.->|"opens question"| node_question_detail

click node_app "https://github.com/mathconceicion/study_flow/blob/main/lib/main.dart"
click node_home "https://github.com/mathconceicion/study_flow/blob/main/lib/screens/home_page.dart"
click node_subject_screen "https://github.com/mathconceicion/study_flow/blob/main/lib/screens/materia_page.dart"
click node_content_screen "https://github.com/mathconceicion/study_flow/blob/main/lib/screens/conteudo_page.dart"
click node_subject_card "https://github.com/mathconceicion/study_flow/blob/main/lib/widgets/materia_card.dart"
click node_content_card "https://github.com/mathconceicion/study_flow/blob/main/lib/widgets/conteudo_card.dart"
click node_question_list "https://github.com/mathconceicion/study_flow/blob/main/lib/screens/enem_page.dart"
click node_question_detail "https://github.com/mathconceicion/study_flow/blob/main/lib/screens/questao_enem_page.dart"
click node_enem_service "https://github.com/mathconceicion/study_flow/blob/main/lib/services/enem_service.dart"
click node_study_data "https://github.com/mathconceicion/study_flow/blob/main/lib/data/dados_estudo.dart"
click node_subject_model "https://github.com/mathconceicion/study_flow/blob/main/lib/models/materia.dart"
click node_content_model "https://github.com/mathconceicion/study_flow/blob/main/lib/models/conteudo.dart"
click node_question_model "https://github.com/mathconceicion/study_flow/blob/main/lib/models/questao_enem.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_app,node_home,node_subject_screen,node_content_screen,node_subject_card,node_content_card toneBlue
class node_question_list,node_question_detail,node_enem_service,node_enem_api toneAmber
class node_study_data,node_subject_model,node_content_model,node_question_model toneMint
class node_learner toneIndigo
```

## Components

### Study Content

- [App Entry](https://github.com/mathconceicion/study_flow/blob/main/lib/main.dart): `lib/main.dart`
- [Home Screen](https://github.com/mathconceicion/study_flow/blob/main/lib/screens/home_page.dart): `lib/screens/home_page.dart`
- [Subject Detail](https://github.com/mathconceicion/study_flow/blob/main/lib/screens/materia_page.dart): `lib/screens/materia_page.dart`
- [Content Detail](https://github.com/mathconceicion/study_flow/blob/main/lib/screens/conteudo_page.dart): `lib/screens/conteudo_page.dart`
- [Subject Card](https://github.com/mathconceicion/study_flow/blob/main/lib/widgets/materia_card.dart): `lib/widgets/materia_card.dart`
- [Content Card](https://github.com/mathconceicion/study_flow/blob/main/lib/widgets/conteudo_card.dart): `lib/widgets/conteudo_card.dart`

### ENEM Questions

- [Question List](https://github.com/mathconceicion/study_flow/blob/main/lib/screens/enem_page.dart): `lib/screens/enem_page.dart`
- [Question Detail](https://github.com/mathconceicion/study_flow/blob/main/lib/screens/questao_enem_page.dart): `lib/screens/questao_enem_page.dart`
- [ENEM Service](https://github.com/mathconceicion/study_flow/blob/main/lib/services/enem_service.dart): `lib/services/enem_service.dart`
- **ENEM API**

### Domain Data

- [Study Catalog](https://github.com/mathconceicion/study_flow/blob/main/lib/data/dados_estudo.dart): `lib/data/dados_estudo.dart`
- [Subject Model](https://github.com/mathconceicion/study_flow/blob/main/lib/models/materia.dart): `lib/models/materia.dart`
- [Content Model](https://github.com/mathconceicion/study_flow/blob/main/lib/models/conteudo.dart): `lib/models/conteudo.dart`
- [Question Model](https://github.com/mathconceicion/study_flow/blob/main/lib/models/questao_enem.dart): `lib/models/questao_enem.dart`

### Other components

- **Learner**

## Connections

- Learner → App Entry: opens (evidence: `README.md`)
- App Entry → Home Screen: starts
- Home Screen → Subject Detail: opens subject (evidence: `README.md`)
- Home Screen → Question List: opens questions (evidence: `README.md`)
- Subject Detail → Content Detail: opens content (evidence: `README.md`)
- Home Screen → Subject Card: lists subjects
- Subject Detail → Content Card: lists filtered content
- Study Catalog → Subject Model: defines subjects
- Study Catalog → Content Model: defines content
- Question List → ENEM Service: requests questions (evidence: `README.md`)
- ENEM Service → ENEM API: fetches questions (evidence: `README.md`)
- ENEM Service → Question Model: maps response
- Question List → Question Detail: opens question
