Skip to content

An App developed using Flutter to search and show the weather forecast for a given city. All the data are provided OpenMeteo weather Api.

Notifications You must be signed in to change notification settings

LeonardoCaracho/flutter_weather

Repository files navigation

Flutter Weather App

An example Flutter weather app using the OpenMeteoApi API.

Flutter Weather App Preview

Related Tutorials

Supported Features

  • Current weather (condition and temperature)
  • switch temperature metric unit
  • Search by city

App Architecture

The app is composed by four main layers.

Data Layer

The data layer contains a single weather repository that is used to fetch weather raw data from the API.

Repository

Abstract the data layer and expose domain models for the application to consume, facilitating the communication with the Bussiness Logic layer.

Bussiness Logic

Consumes the domain model from the repository layer and expose a feature-level model which will be surfaced to the user via UI.

Presentation Layer

This layer holds all the widgets, along with their blocs. Widgets do not communicate directly with the repository.

Packages in use

About the OpenMeteo weather API

The app shows data from the following endpoints:

Note: to use the API you'll need to register an account and obtain your own API key.

About

An App developed using Flutter to search and show the weather forecast for a given city. All the data are provided OpenMeteo weather Api.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published