# kyxen/kompresi_fix architecture

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

- Interactive diagram: https://gitdiagram.com/kyxen/kompresi_fix
- Repository: https://github.com/kyxen/kompresi_fix

## Overview

This is a Flutter application whose name and source-tree structure suggest an image-compression workflow, with screens for configuration, results, and history. The README only identifies it as a starter Flutter project, and the supplied source excerpts cover platform runners rather than Dart product code. The graph therefore treats the workflow and subsystem links as tentative; dashed edges have no excerpted evidence. The platform runner and generated plugin-registration code are scaffolding, not product components.

Main entry points: [`lib/screens/result_screen.dart`](https://github.com/kyxen/kompresi_fix/blob/main/lib/screens/result_screen.dart) (Results screen), [`lib/screens/main_screen.dart`](https://github.com/kyxen/kompresi_fix/blob/main/lib/screens/main_screen.dart) (Main navigation), [`lib/screens/home_screen.dart`](https://github.com/kyxen/kompresi_fix/blob/main/lib/screens/home_screen.dart) (Home screen), [`lib/providers/compression_provider.dart`](https://github.com/kyxen/kompresi_fix/blob/main/lib/providers/compression_provider.dart) (Compression state)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_experience["App experience"]
  node_app["App entry<br/>[main.dart]"]
  node_navigation["Main navigation<br/>[main_screen.dart]"]
  node_home["Home screen<br/>[home_screen.dart]"]
  node_configuration["Compression setup"]
  node_results["Results screen<br/>[result_screen.dart]"]
  node_about["About screen<br/>[about_screen.dart]"]
  node_charts["Charts and metrics<br/>[chart_widget.dart]"]
  node_histogram["Histogram chart"]
  node_upload["Upload card<br/>[upload_card.dart]"]
  node_metrics["Metric cards<br/>[metric_card.dart]"]
  node_stats["Stat card<br/>[stat_card.dart]"]
  node_button["Custom button<br/>[custom_button.dart]"]
  node_splash["Splash screen<br/>[splash_screen.dart]"]
end

subgraph group_compression["Compression"]
  node_compression_state["Compression state"]
  node_image_utils["Image utilities<br/>[image_utils.dart]"]
end

subgraph group_history["History and storage"]
  node_history_state["History state"]
  node_history_screen["History screen"]
  node_history_db[("History database")]
end

subgraph group_services["Supporting services"]
  node_gallery["Gallery access"]
  node_pdf["PDF service<br/>[pdf_service.dart]"]
  node_storage["Storage service"]
end

node_user(("User"))

node_user -.->|"opens"| node_app
node_app -.->|"starts"| node_navigation
node_navigation -.->|"shows"| node_home
node_home -.->|"opens setup"| node_configuration
node_configuration -.->|"configures"| node_compression_state
node_compression_state -.->|"uses"| node_image_utils
node_home -.->|"selects images"| node_gallery
node_compression_state -.->|"provides results"| node_results
node_results -.->|"shows metrics"| node_charts
node_results -.->|"shows histogram"| node_histogram
node_results -.->|"shows metrics"| node_metrics
node_results -.->|"shows stats"| node_stats
node_results -.->|"uses"| node_pdf
node_compression_state -.->|"records entry"| node_history_state
node_history_screen -.->|"reads history"| node_history_state
node_history_state -.->|"uses"| node_history_db
node_history_state -.->|"uses"| node_storage
node_navigation -.->|"opens"| node_history_screen
node_navigation -.->|"opens"| node_about
node_navigation -.->|"shows"| node_splash
node_home -.->|"shows"| node_upload
node_home -.->|"uses"| node_button

click node_app "https://github.com/kyxen/kompresi_fix/blob/main/lib/main.dart"
click node_navigation "https://github.com/kyxen/kompresi_fix/blob/main/lib/screens/main_screen.dart"
click node_home "https://github.com/kyxen/kompresi_fix/blob/main/lib/screens/home_screen.dart"
click node_configuration "https://github.com/kyxen/kompresi_fix/blob/main/lib/screens/compression_config_screen.dart"
click node_results "https://github.com/kyxen/kompresi_fix/blob/main/lib/screens/result_screen.dart"
click node_about "https://github.com/kyxen/kompresi_fix/blob/main/lib/screens/about_screen.dart"
click node_compression_state "https://github.com/kyxen/kompresi_fix/blob/main/lib/providers/compression_provider.dart"
click node_image_utils "https://github.com/kyxen/kompresi_fix/blob/main/lib/utils/image_utils.dart"
click node_gallery "https://github.com/kyxen/kompresi_fix/blob/main/lib/services/gallery_service.dart"
click node_pdf "https://github.com/kyxen/kompresi_fix/blob/main/lib/services/pdf_service.dart"
click node_storage "https://github.com/kyxen/kompresi_fix/blob/main/lib/services/storage_service.dart"
click node_history_state "https://github.com/kyxen/kompresi_fix/blob/main/lib/providers/history_provider.dart"
click node_history_screen "https://github.com/kyxen/kompresi_fix/blob/main/lib/screens/history_screen.dart"
click node_history_db "https://github.com/kyxen/kompresi_fix/blob/main/lib/data/history_database.dart"
click node_charts "https://github.com/kyxen/kompresi_fix/blob/main/lib/widgets/chart_widget.dart"
click node_histogram "https://github.com/kyxen/kompresi_fix/blob/main/lib/widgets/histogram_chart.dart"
click node_upload "https://github.com/kyxen/kompresi_fix/blob/main/lib/widgets/upload_card.dart"
click node_metrics "https://github.com/kyxen/kompresi_fix/blob/main/lib/widgets/metric_card.dart"
click node_stats "https://github.com/kyxen/kompresi_fix/blob/main/lib/widgets/stat_card.dart"
click node_button "https://github.com/kyxen/kompresi_fix/blob/main/lib/widgets/custom_button.dart"
click node_splash "https://github.com/kyxen/kompresi_fix/blob/main/lib/screens/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_app,node_navigation,node_home,node_configuration,node_results,node_about,node_charts,node_histogram,node_upload,node_metrics,node_stats,node_button,node_splash,node_user toneBlue
class node_compression_state,node_image_utils toneAmber
class node_history_state,node_history_screen,node_history_db toneMint
class node_gallery,node_pdf,node_storage toneRose
```

## Components

### App experience

- [App entry](https://github.com/kyxen/kompresi_fix/blob/main/lib/main.dart): `lib/main.dart`
- [Main navigation](https://github.com/kyxen/kompresi_fix/blob/main/lib/screens/main_screen.dart): `lib/screens/main_screen.dart`
- [Home screen](https://github.com/kyxen/kompresi_fix/blob/main/lib/screens/home_screen.dart): `lib/screens/home_screen.dart`
- [Compression setup](https://github.com/kyxen/kompresi_fix/blob/main/lib/screens/compression_config_screen.dart): `lib/screens/compression_config_screen.dart`
- [Results screen](https://github.com/kyxen/kompresi_fix/blob/main/lib/screens/result_screen.dart): `lib/screens/result_screen.dart`
- [About screen](https://github.com/kyxen/kompresi_fix/blob/main/lib/screens/about_screen.dart): `lib/screens/about_screen.dart`
- [Charts and metrics](https://github.com/kyxen/kompresi_fix/blob/main/lib/widgets/chart_widget.dart): `lib/widgets/chart_widget.dart`
- [Histogram chart](https://github.com/kyxen/kompresi_fix/blob/main/lib/widgets/histogram_chart.dart): `lib/widgets/histogram_chart.dart`
- [Upload card](https://github.com/kyxen/kompresi_fix/blob/main/lib/widgets/upload_card.dart): `lib/widgets/upload_card.dart`
- [Metric cards](https://github.com/kyxen/kompresi_fix/blob/main/lib/widgets/metric_card.dart): `lib/widgets/metric_card.dart`
- [Stat card](https://github.com/kyxen/kompresi_fix/blob/main/lib/widgets/stat_card.dart): `lib/widgets/stat_card.dart`
- [Custom button](https://github.com/kyxen/kompresi_fix/blob/main/lib/widgets/custom_button.dart): `lib/widgets/custom_button.dart`
- [Splash screen](https://github.com/kyxen/kompresi_fix/blob/main/lib/screens/splash_screen.dart): `lib/screens/splash_screen.dart`

### Compression

- [Compression state](https://github.com/kyxen/kompresi_fix/blob/main/lib/providers/compression_provider.dart): `lib/providers/compression_provider.dart`
- [Image utilities](https://github.com/kyxen/kompresi_fix/blob/main/lib/utils/image_utils.dart): `lib/utils/image_utils.dart`

### History and storage

- [History state](https://github.com/kyxen/kompresi_fix/blob/main/lib/providers/history_provider.dart): `lib/providers/history_provider.dart`
- [History screen](https://github.com/kyxen/kompresi_fix/blob/main/lib/screens/history_screen.dart): `lib/screens/history_screen.dart`
- [History database](https://github.com/kyxen/kompresi_fix/blob/main/lib/data/history_database.dart): `lib/data/history_database.dart`

### Supporting services

- [Gallery access](https://github.com/kyxen/kompresi_fix/blob/main/lib/services/gallery_service.dart): `lib/services/gallery_service.dart`
- [PDF service](https://github.com/kyxen/kompresi_fix/blob/main/lib/services/pdf_service.dart): `lib/services/pdf_service.dart`
- [Storage service](https://github.com/kyxen/kompresi_fix/blob/main/lib/services/storage_service.dart): `lib/services/storage_service.dart`

### Other components

- **User**

## Connections

- User → App entry: opens
- App entry → Main navigation: starts
- Main navigation → Home screen: shows
- Home screen → Compression setup: opens setup
- Compression setup → Compression state: configures
- Compression state → Image utilities: uses
- Home screen → Gallery access: selects images
- Compression state → Results screen: provides results
- Results screen → Charts and metrics: shows metrics
- Results screen → Histogram chart: shows histogram
- Results screen → Metric cards: shows metrics
- Results screen → Stat card: shows stats
- Results screen → PDF service: uses
- Compression state → History state: records entry
- History screen → History state: reads history
- History state → History database: uses
- History state → Storage service: uses
- Main navigation → History screen: opens
- Main navigation → About screen: opens
- Main navigation → Splash screen: shows
- Home screen → Upload card: shows
- Home screen → Custom button: uses
