# amirbayat0/flutter-converter-app architecture

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

## Overview

Instant Converter is a Flutter unit-conversion app whose main workflow is entering a value, converting it in real time across six unit categories, and viewing or copying the result. The README describes centralized conversion logic, reactive GetX state, and local storage for recent conversions. It also advertises history, settings, onboarding, and utility tools as product capabilities. Source excerpts cover only platform/build files, so the Dart component links below rely on README statements; implementation-level call paths could not be verified.

Main entry points: [`converter/lib/views/converter_screen.dart`](https://github.com/amirbayat0/flutter-converter-app/blob/main/converter/lib/views/converter_screen.dart) (Converter Screen), [`converter/lib/views/tools/tools_screen.dart`](https://github.com/amirbayat0/flutter-converter-app/blob/main/converter/lib/views/tools/tools_screen.dart) (Tools Hub), [`converter/lib/controllers/history_controller.dart`](https://github.com/amirbayat0/flutter-converter-app/blob/main/converter/lib/controllers/history_controller.dart) (History State), [`converter/lib/views/main_wrapper.dart`](https://github.com/amirbayat0/flutter-converter-app/blob/main/converter/lib/views/main_wrapper.dart) (Main Navigation)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["App and Navigation"]
  node_entry["App Entry<br/>[main.dart]"]
  node_navigation["Main Navigation<br/>[main_wrapper.dart]"]
  node_onboarding["Onboarding"]
  node_splash["Splash Screen<br/>[splash_screen.dart]"]
end

subgraph group_conversion["Conversion Workflow"]
  node_converter_screen["Converter Screen"]
  node_converter_controller["Conversion State"]
  node_conversion_logic["Conversion Logic"]
  node_conversion_data["Unit Categories"]
  node_unit_model["Unit Model"]
  node_category_model["Category Model"]
  node_input_widget["Conversion Input"]
  node_result_widget["Result Display"]
end

subgraph group_history["History and Storage"]
  node_history_controller["History State"]
  node_history_view["Conversion History<br/>[history_view.dart]"]
  node_history_model["History Record"]
  node_local_storage[("Local Preferences")]
end

subgraph group_features["Tools and Settings"]
  node_tools_screen["Tools Hub<br/>[tools_screen.dart]"]
  node_age_tool["Age Calculator"]
  node_date_tool["Date Calculator"]
  node_password_tool["Password Generator"]
  node_timezone_tool["Timezone Converter"]
  node_settings_screen["Settings"]
  node_settings_controller["Settings State"]
  node_theme_controller["Theme State"]
end

node_user(("User"))
node_clipboard["Clipboard"]

node_user -->|"enters values"| node_converter_screen
node_converter_screen -->|"updates state"| node_converter_controller
node_converter_controller -->|"converts units"| node_conversion_logic
node_conversion_logic -->|"uses categories"| node_conversion_data
node_converter_screen -->|"accepts input"| node_input_widget
node_converter_screen -->|"shows result"| node_result_widget
node_converter_controller -->|"saves recent conversions"| node_history_controller
node_history_controller -->|"stores history"| node_local_storage
node_history_controller -->|"records conversions"| node_history_model
node_history_view -->|"shows recent items"| node_history_controller
node_user -->|"opens tools"| node_tools_screen
node_tools_screen -->|"offers calculator"| node_age_tool
node_tools_screen -->|"offers calculator"| node_date_tool
node_tools_screen -->|"offers generator"| node_password_tool
node_tools_screen -->|"offers converter"| node_timezone_tool
node_user -->|"opens settings"| node_settings_screen
node_settings_screen -.->|"manages settings"| node_settings_controller
node_settings_controller -.->|"manages theme"| node_theme_controller
node_user -->|"copies result"| node_clipboard
node_converter_screen -->|"copies result"| node_clipboard
node_entry -.->|"starts app"| node_navigation
node_navigation -.->|"shows startup"| node_splash
node_navigation -.->|"offers onboarding"| node_onboarding

click node_entry "https://github.com/amirbayat0/flutter-converter-app/blob/main/converter/lib/main.dart"
click node_navigation "https://github.com/amirbayat0/flutter-converter-app/blob/main/converter/lib/views/main_wrapper.dart"
click node_converter_screen "https://github.com/amirbayat0/flutter-converter-app/blob/main/converter/lib/views/converter_screen.dart"
click node_converter_controller "https://github.com/amirbayat0/flutter-converter-app/blob/main/converter/lib/controllers/converter_controller.dart"
click node_conversion_logic "https://github.com/amirbayat0/flutter-converter-app/blob/main/converter/lib/utils/converter_helper.dart"
click node_conversion_data "https://github.com/amirbayat0/flutter-converter-app/blob/main/converter/lib/utils/conversion_data.dart"
click node_unit_model "https://github.com/amirbayat0/flutter-converter-app/blob/main/converter/lib/models/conversion_unit.dart"
click node_category_model "https://github.com/amirbayat0/flutter-converter-app/blob/main/converter/lib/models/conversion_category.dart"
click node_input_widget "https://github.com/amirbayat0/flutter-converter-app/blob/main/converter/lib/widgets/conversion_input.dart"
click node_result_widget "https://github.com/amirbayat0/flutter-converter-app/blob/main/converter/lib/widgets/result_display.dart"
click node_history_controller "https://github.com/amirbayat0/flutter-converter-app/blob/main/converter/lib/controllers/history_controller.dart"
click node_history_view "https://github.com/amirbayat0/flutter-converter-app/blob/main/converter/lib/views/history_view.dart"
click node_history_model "https://github.com/amirbayat0/flutter-converter-app/blob/main/converter/lib/models/conversion_history.dart"
click node_local_storage "https://github.com/amirbayat0/flutter-converter-app/blob/main/converter/lib/utils/storage_helper.dart"
click node_tools_screen "https://github.com/amirbayat0/flutter-converter-app/blob/main/converter/lib/views/tools/tools_screen.dart"
click node_age_tool "https://github.com/amirbayat0/flutter-converter-app/blob/main/converter/lib/views/tools/age_calculator_screen.dart"
click node_date_tool "https://github.com/amirbayat0/flutter-converter-app/blob/main/converter/lib/views/tools/date_calculator_screen.dart"
click node_password_tool "https://github.com/amirbayat0/flutter-converter-app/blob/main/converter/lib/views/tools/password_generator_screen.dart"
click node_timezone_tool "https://github.com/amirbayat0/flutter-converter-app/blob/main/converter/lib/views/tools/timezone_converter_screen.dart"
click node_settings_screen "https://github.com/amirbayat0/flutter-converter-app/blob/main/converter/lib/views/settings_screen.dart"
click node_settings_controller "https://github.com/amirbayat0/flutter-converter-app/blob/main/converter/lib/controllers/settings_controller.dart"
click node_theme_controller "https://github.com/amirbayat0/flutter-converter-app/blob/main/converter/lib/controllers/theme_controller.dart"
click node_onboarding "https://github.com/amirbayat0/flutter-converter-app/blob/main/converter/lib/views/onboarding_screen.dart"
click node_splash "https://github.com/amirbayat0/flutter-converter-app/blob/main/converter/lib/views/splash_screen.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_onboarding,node_splash,node_user toneBlue
class node_converter_screen,node_converter_controller,node_conversion_logic,node_conversion_data,node_unit_model,node_category_model,node_input_widget,node_result_widget toneAmber
class node_history_controller,node_history_view,node_history_model,node_local_storage toneMint
class node_tools_screen,node_age_tool,node_date_tool,node_password_tool,node_timezone_tool,node_settings_screen,node_settings_controller,node_theme_controller toneRose
class node_clipboard toneIndigo
```

## Components

### App and Navigation

- [App Entry](https://github.com/amirbayat0/flutter-converter-app/blob/main/converter/lib/main.dart): `converter/lib/main.dart`
- [Main Navigation](https://github.com/amirbayat0/flutter-converter-app/blob/main/converter/lib/views/main_wrapper.dart): `converter/lib/views/main_wrapper.dart`
- [Onboarding](https://github.com/amirbayat0/flutter-converter-app/blob/main/converter/lib/views/onboarding_screen.dart): `converter/lib/views/onboarding_screen.dart`
- [Splash Screen](https://github.com/amirbayat0/flutter-converter-app/blob/main/converter/lib/views/splash_screen.dart): `converter/lib/views/splash_screen.dart`

### Conversion Workflow

- [Converter Screen](https://github.com/amirbayat0/flutter-converter-app/blob/main/converter/lib/views/converter_screen.dart): `converter/lib/views/converter_screen.dart`
- [Conversion State](https://github.com/amirbayat0/flutter-converter-app/blob/main/converter/lib/controllers/converter_controller.dart): `converter/lib/controllers/converter_controller.dart`
- [Conversion Logic](https://github.com/amirbayat0/flutter-converter-app/blob/main/converter/lib/utils/converter_helper.dart): `converter/lib/utils/converter_helper.dart`
- [Unit Categories](https://github.com/amirbayat0/flutter-converter-app/blob/main/converter/lib/utils/conversion_data.dart): `converter/lib/utils/conversion_data.dart`
- [Unit Model](https://github.com/amirbayat0/flutter-converter-app/blob/main/converter/lib/models/conversion_unit.dart): `converter/lib/models/conversion_unit.dart`
- [Category Model](https://github.com/amirbayat0/flutter-converter-app/blob/main/converter/lib/models/conversion_category.dart): `converter/lib/models/conversion_category.dart`
- [Conversion Input](https://github.com/amirbayat0/flutter-converter-app/blob/main/converter/lib/widgets/conversion_input.dart): `converter/lib/widgets/conversion_input.dart`
- [Result Display](https://github.com/amirbayat0/flutter-converter-app/blob/main/converter/lib/widgets/result_display.dart): `converter/lib/widgets/result_display.dart`

### History and Storage

- [History State](https://github.com/amirbayat0/flutter-converter-app/blob/main/converter/lib/controllers/history_controller.dart): `converter/lib/controllers/history_controller.dart`
- [Conversion History](https://github.com/amirbayat0/flutter-converter-app/blob/main/converter/lib/views/history_view.dart): `converter/lib/views/history_view.dart`
- [History Record](https://github.com/amirbayat0/flutter-converter-app/blob/main/converter/lib/models/conversion_history.dart): `converter/lib/models/conversion_history.dart`
- [Local Preferences](https://github.com/amirbayat0/flutter-converter-app/blob/main/converter/lib/utils/storage_helper.dart): `converter/lib/utils/storage_helper.dart`

### Tools and Settings

- [Tools Hub](https://github.com/amirbayat0/flutter-converter-app/blob/main/converter/lib/views/tools/tools_screen.dart): `converter/lib/views/tools/tools_screen.dart`
- [Age Calculator](https://github.com/amirbayat0/flutter-converter-app/blob/main/converter/lib/views/tools/age_calculator_screen.dart): `converter/lib/views/tools/age_calculator_screen.dart`
- [Date Calculator](https://github.com/amirbayat0/flutter-converter-app/blob/main/converter/lib/views/tools/date_calculator_screen.dart): `converter/lib/views/tools/date_calculator_screen.dart`
- [Password Generator](https://github.com/amirbayat0/flutter-converter-app/blob/main/converter/lib/views/tools/password_generator_screen.dart): `converter/lib/views/tools/password_generator_screen.dart`
- [Timezone Converter](https://github.com/amirbayat0/flutter-converter-app/blob/main/converter/lib/views/tools/timezone_converter_screen.dart): `converter/lib/views/tools/timezone_converter_screen.dart`
- [Settings](https://github.com/amirbayat0/flutter-converter-app/blob/main/converter/lib/views/settings_screen.dart): `converter/lib/views/settings_screen.dart`
- [Settings State](https://github.com/amirbayat0/flutter-converter-app/blob/main/converter/lib/controllers/settings_controller.dart): `converter/lib/controllers/settings_controller.dart`
- [Theme State](https://github.com/amirbayat0/flutter-converter-app/blob/main/converter/lib/controllers/theme_controller.dart): `converter/lib/controllers/theme_controller.dart`

### Other components

- **User**
- **Clipboard**

## Connections

- User → Converter Screen: enters values (evidence: `README.md`)
- Converter Screen → Conversion State: updates state (evidence: `README.md`)
- Conversion State → Conversion Logic: converts units (evidence: `README.md`)
- Conversion Logic → Unit Categories: uses categories (evidence: `README.md`)
- Converter Screen → Conversion Input: accepts input (evidence: `README.md`)
- Converter Screen → Result Display: shows result (evidence: `README.md`)
- Conversion State → History State: saves recent conversions (evidence: `README.md`)
- History State → Local Preferences: stores history (evidence: `README.md`)
- History State → History Record: records conversions (evidence: `README.md`)
- Conversion History → History State: shows recent items (evidence: `README.md`)
- User → Tools Hub: opens tools (evidence: `README.md`)
- Tools Hub → Age Calculator: offers calculator (evidence: `README.md`)
- Tools Hub → Date Calculator: offers calculator (evidence: `README.md`)
- Tools Hub → Password Generator: offers generator (evidence: `README.md`)
- Tools Hub → Timezone Converter: offers converter (evidence: `README.md`)
- User → Settings: opens settings (evidence: `README.md`)
- Settings → Settings State: manages settings
- Settings State → Theme State: manages theme
- User → Clipboard: copies result (evidence: `README.md`)
- Converter Screen → Clipboard: copies result (evidence: `README.md`)
- App Entry → Main Navigation: starts app
- Main Navigation → Splash Screen: shows startup
- Main Navigation → Onboarding: offers onboarding
