Skip to content

A Flutter and Dart weather application using the OpenWeather API.

License

Notifications You must be signed in to change notification settings

miguelloq/Weather_App

Repository files navigation

Weather App

Weather App[readme_src/weather_app_gif.gif]

This repository contains a weather application developed using Flutter and Dart for Android and iOS. The application utilizes the Provider package for state management, SharedPreferences for local storage, HTTP for accessing the OpenWeather API for weather and geocoding information, and Google Fonts for beautiful typography.

Features

  • Display of current weather, including temperature, weather description, humidity, and wind speed.
  • Option of change theme color in runtime.
  • Search based on manual search.
  • Storage of last searched location for quick access.

Prerequisites

Configuration

  1. Clone this repository to your local environment:
bash
git clone https://github.com/your-username/weather-app-flutter.git
  1. Navigate to the project directory:
bash
cd weather-app-flutter
  1. Install Flutter dependencies:
bash
flutter pub get
  1. Open the lib/src/utils/keys.dart file and insert your OpenWeather API key into the API_KEY constant.
dart
static const String openWeatherKey = 'your_api_key_here';

Execution

Ensure that the device or emulator is connected and run the following command within the project directory:

bash
flutter run

The application will be compiled and launched on the device/emulator.

Used Libraries

  • provider: For state management.
  • shared_preferences: For local storage of the last searched location.
  • http: For accessing the OpenWeather API for weather and geocoding information.
  • google_fonts: For beautiful typography in the application.

Contribution

Contributions are welcome! Feel free to open an issue or submit a pull request with improvements, bug fixes, or new features.

License

This project is licensed under the MIT License.

About

A Flutter and Dart weather application using the OpenWeather API.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages