Flutter Weather App

A simple Flutter weather app that displays real-time weather information based on the user's location using the OpenWeatherMap API.

Features

  • Fetches current weather data for the user's location
  • Displays temperature, weather condition, sunrise, sunset, and more
  • Animated weather illustrations based on current weather conditions
  • Clean and responsive UI design
  • Supports both dark and light themes

Screenshots

Screenshot 1 Screenshot 2

Getting Started

Prerequisites

Installation

  1. Clone the repository:

    git clone https://github.com/your-username/flutter-weather-app.git
  2. Change into the project directory:

    cd flutter-weather-app
  3. Install dependencies:

    flutter pub get
  4. Obtain an API key from OpenWeatherMap and replace YOUR_API_KEY in lib/api_keys.dart with your actual API key.

Usage

Run the app on an emulator or physical device:

flutter run

Theme Switching

The app supports both light and dark themes. The theme is determined based on the system theme ( light/dark) by default. You can manually toggle between themes in the app settings.

Dependencies

  • http for making HTTP requests.
  • geolocator for retrieving the user's location.
  • lottie for displaying Lottie animations.
  • geocoding for converting coordinates to location names.

Contributing

Contributions are welcome! Feel free to open issues or submit pull requests.

Acknowledgments