# nirahs/bmi_calculator architecture

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

- Interactive diagram: https://gitdiagram.com/nirahs/bmi_calculator
- Repository: https://github.com/nirahs/bmi_calculator

## Overview

This is a Flutter BMI calculator. Its apparent user workflow is entering measurements and preferences, calculating BMI, then viewing a result. The tree identifies the corresponding Dart screens and calculator module, but none of those files were excerpted; workflow links are therefore marked unverified rather than presented as inspected calls. The README confirms the product type but documents no further capabilities.

Main entry points: [`lib/screens/input_page.dart`](https://github.com/nirahs/bmi_calculator/blob/main/lib/screens/input_page.dart) (Input screen), [`lib/main.dart`](https://github.com/nirahs/bmi_calculator/blob/main/lib/main.dart) (Flutter entry), [`lib/calculator_brain.dart`](https://github.com/nirahs/bmi_calculator/blob/main/lib/calculator_brain.dart) (BMI calculator), [`lib/screens/results_page.dart`](https://github.com/nirahs/bmi_calculator/blob/main/lib/screens/results_page.dart) (Results screen)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["BMI app"]
  node_entry["Flutter entry<br/>[main.dart]"]
  node_input["Input screen<br/>[input_page.dart]"]
  node_calculator["BMI calculator"]
  node_results["Results screen<br/>[results_page.dart]"]
  node_components["UI components"]
  node_constants["App constants<br/>[constantes.dart]"]
end

node_user(("App user"))

node_user -.->|"opens app"| node_entry
node_entry -.->|"shows screen"| node_input
node_user -.->|"enters values"| node_input
node_input -.->|"requests calculation"| node_calculator
node_input -.->|"navigates to"| node_results
node_calculator -.->|"provides result"| node_results

click node_entry "https://github.com/nirahs/bmi_calculator/blob/main/lib/main.dart"
click node_input "https://github.com/nirahs/bmi_calculator/blob/main/lib/screens/input_page.dart"
click node_calculator "https://github.com/nirahs/bmi_calculator/blob/main/lib/calculator_brain.dart"
click node_results "https://github.com/nirahs/bmi_calculator/blob/main/lib/screens/results_page.dart"
click node_components "https://github.com/nirahs/bmi_calculator/tree/main/lib/components"
click node_constants "https://github.com/nirahs/bmi_calculator/blob/main/lib/constantes.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_input,node_calculator,node_results,node_components,node_constants,node_user toneBlue
```

## Components

### BMI app

- [Flutter entry](https://github.com/nirahs/bmi_calculator/blob/main/lib/main.dart): `lib/main.dart`
- [Input screen](https://github.com/nirahs/bmi_calculator/blob/main/lib/screens/input_page.dart): `lib/screens/input_page.dart`
- [BMI calculator](https://github.com/nirahs/bmi_calculator/blob/main/lib/calculator_brain.dart): `lib/calculator_brain.dart`
- [Results screen](https://github.com/nirahs/bmi_calculator/blob/main/lib/screens/results_page.dart): `lib/screens/results_page.dart`
- [UI components](https://github.com/nirahs/bmi_calculator/tree/main/lib/components): `lib/components`
- [App constants](https://github.com/nirahs/bmi_calculator/blob/main/lib/constantes.dart): `lib/constantes.dart`

### Other components

- **App user**

## Connections

- App user → Flutter entry: opens app
- Flutter entry → Input screen: shows screen
- App user → Input screen: enters values
- Input screen → BMI calculator: requests calculation
- Input screen → Results screen: navigates to
- BMI calculator → Results screen: provides result
