A responsive and feature-rich weather forecast application built with Flutter. It provides real-time weather data for any city, an hourly forecast, and a dynamic UI that adapts for both mobile and web.
Live Demo: https://awaneetdecoder.github.io/WeatherApp/
| Light Mode | Dark Mode |
|---|---|
![]() |
![]() |
- Real-time Weather Data: Fetches current temperature, sky condition, humidity, wind speed, and pressure.
- Dynamic City Search: Allows users to find weather information for any city worldwide.
- Responsive UI: The layout automatically adjusts for both mobile and desktop web views.
- Dark & Light Mode: Includes a theme toggle for user preference.
- Hourly Forecast: Displays an hourly forecast with corresponding temperatures and icons.
- Framework: Flutter
- Language: Dart
- API: OpenWeatherMap REST API for weather data.
- Packages:
http: For making API requests.intl: For date and time formatting.
To run this project locally, follow these steps:
- Clone the repository:
git clone [https://github.com/awaneetdecoder/WeatherApp.git](https://github.com/awaneetdecoder/WeatherApp.git)
- Navigate to the project directory:
cd WeatherApp - Install dependencies:
flutter pub get
- Create
secrets.dart: Create a file namedsecrets.dartinside thelibfolder and add your OpenWeatherMap API key:// lib/secrets.dart const openWeatherAPIKey = 'YOUR_API_KEY_HERE';
- Run the app:
flutter run

