# rwozniak89/meteoszybkapogoda architecture

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

- Interactive diagram: https://gitdiagram.com/rwozniak89/meteoszybkapogoda
- Repository: https://github.com/rwozniak89/meteoszybkapogoda

## Overview

MeteoSzybkaPogoda is a Flutter Web weather app. The user selects a city or requests a refresh; the app fetches Open-Meteo data and displays current conditions and a 16-day forecast. Users can select forecast days without another request. The README identifies main.dart as owning screen state and UI, weather.dart as owning API communication and weather models, and cities.dart as holding city coordinates. Relationships below are based on README documentation; source excerpts were not available.

Main entry points: [`lib/main.dart`](https://github.com/rwozniak89/meteoszybkapogoda/blob/main/lib/main.dart) (Screen state), [`lib/weather.dart`](https://github.com/rwozniak89/meteoszybkapogoda/blob/main/lib/weather.dart) (Weather API client), [`lib/cities.dart`](https://github.com/rwozniak89/meteoszybkapogoda/blob/main/lib/cities.dart) (City coordinates)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_ui["App interface"]
  node_screen["Screen state<br/>[main.dart]"]
  node_conditions["Current conditions<br/>[main.dart]"]
  node_forecast["16-day forecast<br/>[main.dart]"]
  node_day_picker["Day selection<br/>[main.dart]"]
end

subgraph group_weather["Weather data"]
  node_city_catalog["City coordinates<br/>[cities.dart]"]
  node_weather_client["Weather API client<br/>[weather.dart]"]
  node_weather_models["Weather models<br/>[weather.dart]"]
end

subgraph group_external["External services"]
  node_open_meteo{{"Open-Meteo"}}
end

node_user(("User"))

node_user -->|"interacts with"| node_screen
node_screen -->|"selects city"| node_city_catalog
node_screen -->|"requests data"| node_weather_client
node_weather_client -->|"fetches forecast"| node_open_meteo
node_open_meteo -->|"returns data"| node_weather_client
node_weather_client -->|"models response"| node_weather_models
node_screen -->|"displays current"| node_conditions
node_screen -->|"displays forecast"| node_forecast
node_user -->|"selects day"| node_day_picker
node_day_picker -->|"chooses day"| node_forecast

click node_screen "https://github.com/rwozniak89/meteoszybkapogoda/blob/main/lib/main.dart"
click node_conditions "https://github.com/rwozniak89/meteoszybkapogoda/blob/main/lib/main.dart"
click node_forecast "https://github.com/rwozniak89/meteoszybkapogoda/blob/main/lib/main.dart"
click node_day_picker "https://github.com/rwozniak89/meteoszybkapogoda/blob/main/lib/main.dart"
click node_city_catalog "https://github.com/rwozniak89/meteoszybkapogoda/blob/main/lib/cities.dart"
click node_weather_client "https://github.com/rwozniak89/meteoszybkapogoda/blob/main/lib/weather.dart"
click node_weather_models "https://github.com/rwozniak89/meteoszybkapogoda/blob/main/lib/weather.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_screen,node_conditions,node_forecast,node_day_picker,node_user toneBlue
class node_city_catalog,node_weather_client,node_weather_models toneAmber
class node_open_meteo toneMint
```

## Components

### App interface

- [Screen state](https://github.com/rwozniak89/meteoszybkapogoda/blob/main/lib/main.dart): `lib/main.dart`
- [Current conditions](https://github.com/rwozniak89/meteoszybkapogoda/blob/main/lib/main.dart): `lib/main.dart`
- [16-day forecast](https://github.com/rwozniak89/meteoszybkapogoda/blob/main/lib/main.dart): `lib/main.dart`
- [Day selection](https://github.com/rwozniak89/meteoszybkapogoda/blob/main/lib/main.dart): `lib/main.dart`

### Weather data

- [City coordinates](https://github.com/rwozniak89/meteoszybkapogoda/blob/main/lib/cities.dart): `lib/cities.dart`
- [Weather API client](https://github.com/rwozniak89/meteoszybkapogoda/blob/main/lib/weather.dart): `lib/weather.dart`
- [Weather models](https://github.com/rwozniak89/meteoszybkapogoda/blob/main/lib/weather.dart): `lib/weather.dart`

### External services

- **Open-Meteo**

### Other components

- **User**

## Connections

- User → Screen state: interacts with (evidence: `README.md`)
- Screen state → City coordinates: selects city (evidence: `README.md`)
- Screen state → Weather API client: requests data (evidence: `README.md`)
- Weather API client → Open-Meteo: fetches forecast (evidence: `README.md`)
- Open-Meteo → Weather API client: returns data (evidence: `README.md`)
- Weather API client → Weather models: models response (evidence: `README.md`)
- Screen state → Current conditions: displays current (evidence: `README.md`)
- Screen state → 16-day forecast: displays forecast (evidence: `README.md`)
- User → Day selection: selects day (evidence: `README.md`)
- Day selection → 16-day forecast: chooses day (evidence: `README.md`)
