/weather_app

My implementation of a Weather App using Bloc and Cubit.

Primary LanguageDartMIT LicenseMIT

Logo

City Weather App

My implementation of a Weather App using Bloc and Cubit.

Table of contents

Quick start

The directory structure tree of the app separates business logic and user interface by using two folders: business, and client. To start the app, run the main file on the client folder. Also, there is a "packages" folder where the repositories are located.

The app was tested until now only on an Android Pixel 4 phone using the simulator, so the layout may not be completely right for other phones.

This app uses the package weather to interact with OpenWeatherMaps API. For that it is necessary to create an OpenWeatherMaps API Key, and insert it on the start of the main.dart file.

For search location autocomplete Photon API is used via http requests.

Possible Enhancements

  • Add Connectivity package to test connection status (Create new ConnectionErrorScreen)
  • Caching -> Caching is not working right now, to use HydratedBloc with built_value a Custom Hydrated Storage will be necessary to be created.