# abinoyam/unit-converter-flutter-project architecture

> Architecture diagram of the GitHub repository abinoyam/unit-converter-flutter-project, 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/abinoyam/unit-converter-flutter-project
- Repository: https://github.com/abinoyam/unit-converter-flutter-project

## Overview

This repository documents a staged Flutter unit-converter project. The user workflow is to choose a category, enter a value, select source and target units, and see the converted result; later stages add responsive layouts and routes to history/about screens. The provided tree contains only native platform runners, not the Dart app files, so product-stage components and their relationships are included only where the README supports them. Platform entry points are shown as hosts, not as conversion logic.

Main entry points: [`STAGE-4/lib/screens/converter_screen.dart`](https://github.com/abinoyam/unit-converter-flutter-project/blob/main/STAGE-4/lib/screens/converter_screen.dart) (Converter screen), [`STAGE-4/lib/main.dart`](https://github.com/abinoyam/unit-converter-flutter-project/blob/main/STAGE-4/lib/main.dart) (Flutter app entry), [`STAGE-4/lib/screens/home_screen.dart`](https://github.com/abinoyam/unit-converter-flutter-project/blob/main/STAGE-4/lib/screens/home_screen.dart) (Home screen), [`STAGE-4/lib/screens/history_screen.dart`](https://github.com/abinoyam/unit-converter-flutter-project/blob/main/STAGE-4/lib/screens/history_screen.dart) (Conversion history)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_product["Converter experience"]
  node_home["Home screen<br/>[home_screen.dart]"]
  node_converter["Converter screen"]
  node_category["Category selection"]
  node_input["Value and unit input"]
  node_conversion["Conversion result"]
  node_history["Conversion history"]
  node_about["About screen<br/>[about_screen.dart]"]
  node_navigation["Named routes and drawer<br/>[main.dart]"]
  node_responsive["Responsive layout<br/>[main.dart]"]
  node_length["Length conversion"]
  node_weight["Weight conversion"]
  node_temperature["Temperature conversion"]
end

subgraph group_host["Flutter platform hosts"]
  node_app["Flutter app entry<br/>[main.dart]"]
  node_windows["Windows runner<br/>[main.cpp]"]
  node_linux["Linux runner<br/>[main.cc]"]
  node_ios["iOS runner<br/>[AppDelegate.swift]"]
  node_macos["macOS runner"]
end

node_user(("User"))

node_user -->|"opens"| node_home
node_user -->|"enters values"| node_converter
node_converter -->|"selects category"| node_category
node_converter -->|"takes input"| node_input
node_converter -->|"converts length"| node_length
node_converter -->|"converts weight"| node_weight
node_converter -->|"converts temperature"| node_temperature
node_converter -->|"shows result"| node_conversion
node_home -->|"uses routes"| node_navigation
node_navigation -->|"routes to"| node_converter
node_navigation -->|"routes to"| node_history
node_navigation -->|"routes to"| node_about
node_converter -->|"opens history"| node_history
node_converter -->|"adapts layout"| node_responsive
node_app -.->|"starts screen"| node_home
node_windows -.->|"hosts Flutter"| node_app
node_linux -.->|"hosts Flutter"| node_app
node_ios -.->|"hosts Flutter"| node_app
node_macos -.->|"hosts Flutter"| node_app

click node_home "https://github.com/abinoyam/unit-converter-flutter-project/blob/main/STAGE-4/lib/screens/home_screen.dart"
click node_converter "https://github.com/abinoyam/unit-converter-flutter-project/blob/main/STAGE-4/lib/screens/converter_screen.dart"
click node_category "https://github.com/abinoyam/unit-converter-flutter-project/blob/main/STAGE-4/lib/screens/converter_screen.dart"
click node_input "https://github.com/abinoyam/unit-converter-flutter-project/blob/main/STAGE-4/lib/screens/converter_screen.dart"
click node_conversion "https://github.com/abinoyam/unit-converter-flutter-project/blob/main/STAGE-4/lib/screens/converter_screen.dart"
click node_history "https://github.com/abinoyam/unit-converter-flutter-project/blob/main/STAGE-4/lib/screens/history_screen.dart"
click node_about "https://github.com/abinoyam/unit-converter-flutter-project/blob/main/STAGE-4/lib/screens/about_screen.dart"
click node_navigation "https://github.com/abinoyam/unit-converter-flutter-project/blob/main/STAGE-4/lib/main.dart"
click node_responsive "https://github.com/abinoyam/unit-converter-flutter-project/blob/main/STAGE-3/lib/main.dart"
click node_length "https://github.com/abinoyam/unit-converter-flutter-project/blob/main/STAGE-4/lib/screens/converter_screen.dart"
click node_weight "https://github.com/abinoyam/unit-converter-flutter-project/blob/main/STAGE-4/lib/screens/converter_screen.dart"
click node_temperature "https://github.com/abinoyam/unit-converter-flutter-project/blob/main/STAGE-4/lib/screens/converter_screen.dart"
click node_app "https://github.com/abinoyam/unit-converter-flutter-project/blob/main/STAGE-4/lib/main.dart"
click node_windows "https://github.com/abinoyam/unit-converter-flutter-project/blob/main/STAGE-4/windows/runner/main.cpp"
click node_linux "https://github.com/abinoyam/unit-converter-flutter-project/blob/main/STAGE-4/linux/runner/main.cc"
click node_ios "https://github.com/abinoyam/unit-converter-flutter-project/blob/main/STAGE-4/ios/Runner/AppDelegate.swift"
click node_macos "https://github.com/abinoyam/unit-converter-flutter-project/blob/main/STAGE-4/macos/Runner/MainFlutterWindow.swift"

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_home,node_converter,node_category,node_input,node_conversion,node_history,node_about,node_navigation,node_responsive,node_length,node_weight,node_temperature,node_user toneBlue
class node_app,node_windows,node_linux,node_ios,node_macos toneAmber
```

## Components

### Converter experience

- [Home screen](https://github.com/abinoyam/unit-converter-flutter-project/blob/main/STAGE-4/lib/screens/home_screen.dart): `STAGE-4/lib/screens/home_screen.dart`
- [Converter screen](https://github.com/abinoyam/unit-converter-flutter-project/blob/main/STAGE-4/lib/screens/converter_screen.dart): `STAGE-4/lib/screens/converter_screen.dart`
- [Category selection](https://github.com/abinoyam/unit-converter-flutter-project/blob/main/STAGE-4/lib/screens/converter_screen.dart): `STAGE-4/lib/screens/converter_screen.dart`
- [Value and unit input](https://github.com/abinoyam/unit-converter-flutter-project/blob/main/STAGE-4/lib/screens/converter_screen.dart): `STAGE-4/lib/screens/converter_screen.dart`
- [Conversion result](https://github.com/abinoyam/unit-converter-flutter-project/blob/main/STAGE-4/lib/screens/converter_screen.dart): `STAGE-4/lib/screens/converter_screen.dart`
- [Conversion history](https://github.com/abinoyam/unit-converter-flutter-project/blob/main/STAGE-4/lib/screens/history_screen.dart): `STAGE-4/lib/screens/history_screen.dart`
- [About screen](https://github.com/abinoyam/unit-converter-flutter-project/blob/main/STAGE-4/lib/screens/about_screen.dart): `STAGE-4/lib/screens/about_screen.dart`
- [Named routes and drawer](https://github.com/abinoyam/unit-converter-flutter-project/blob/main/STAGE-4/lib/main.dart): `STAGE-4/lib/main.dart`
- [Responsive layout](https://github.com/abinoyam/unit-converter-flutter-project/blob/main/STAGE-3/lib/main.dart): `STAGE-3/lib/main.dart`
- [Length conversion](https://github.com/abinoyam/unit-converter-flutter-project/blob/main/STAGE-4/lib/screens/converter_screen.dart): `STAGE-4/lib/screens/converter_screen.dart`
- [Weight conversion](https://github.com/abinoyam/unit-converter-flutter-project/blob/main/STAGE-4/lib/screens/converter_screen.dart): `STAGE-4/lib/screens/converter_screen.dart`
- [Temperature conversion](https://github.com/abinoyam/unit-converter-flutter-project/blob/main/STAGE-4/lib/screens/converter_screen.dart): `STAGE-4/lib/screens/converter_screen.dart`

### Flutter platform hosts

- [Flutter app entry](https://github.com/abinoyam/unit-converter-flutter-project/blob/main/STAGE-4/lib/main.dart): `STAGE-4/lib/main.dart`
- [Windows runner](https://github.com/abinoyam/unit-converter-flutter-project/blob/main/STAGE-4/windows/runner/main.cpp): `STAGE-4/windows/runner/main.cpp`
- [Linux runner](https://github.com/abinoyam/unit-converter-flutter-project/blob/main/STAGE-4/linux/runner/main.cc): `STAGE-4/linux/runner/main.cc`
- [iOS runner](https://github.com/abinoyam/unit-converter-flutter-project/blob/main/STAGE-4/ios/Runner/AppDelegate.swift): `STAGE-4/ios/Runner/AppDelegate.swift`
- [macOS runner](https://github.com/abinoyam/unit-converter-flutter-project/blob/main/STAGE-4/macos/Runner/MainFlutterWindow.swift): `STAGE-4/macos/Runner/MainFlutterWindow.swift`

### Other components

- **User**

## Connections

- User → Home screen: opens (evidence: `README.md`)
- User → Converter screen: enters values (evidence: `README.md`)
- Converter screen → Category selection: selects category (evidence: `README.md`)
- Converter screen → Value and unit input: takes input (evidence: `README.md`)
- Converter screen → Length conversion: converts length (evidence: `README.md`)
- Converter screen → Weight conversion: converts weight (evidence: `README.md`)
- Converter screen → Temperature conversion: converts temperature (evidence: `README.md`)
- Converter screen → Conversion result: shows result (evidence: `README.md`)
- Home screen → Named routes and drawer: uses routes (evidence: `README.md`)
- Named routes and drawer → Converter screen: routes to (evidence: `README.md`)
- Named routes and drawer → Conversion history: routes to (evidence: `README.md`)
- Named routes and drawer → About screen: routes to (evidence: `README.md`)
- Converter screen → Conversion history: opens history (evidence: `README.md`)
- Converter screen → Responsive layout: adapts layout (evidence: `README.md`)
- Flutter app entry → Home screen: starts screen
- Windows runner → Flutter app entry: hosts Flutter
- Linux runner → Flutter app entry: hosts Flutter
- iOS runner → Flutter app entry: hosts Flutter
- macOS runner → Flutter app entry: hosts Flutter
