WeatherWise keeps you prepared with accurate weather updates and forecasts. Search and save cities, access detailed reports, and stay informed about air quality. Enjoy dynamic backgrounds, a customizable dashboard, and easy navigation. WeatherWise ensures your data is always available, even offline.
The Weather App is a feature-rich application designed to provide users with accurate and up-to-date weather information. It leverages a sleek and intuitive user interface to deliver real-time weather data, forecasts, and air quality information for cities around the world.
- Current Weather Information: Displays the current temperature, weather conditions, and other relevant details such as humidity, wind speed, and cloud cover.
- City Search: Users can search for and add cities to get weather updates for multiple locations.
- Weather Forecast: Provides detailed forecasts, including maximum and minimum temperatures for the day.
- Air Quality Index: Shows the Air Quality Index (AQI) and related health advisories.
- Dynamic Backgrounds: The app changes its background images based on the weather conditions and time of day, enhancing the user experience.



Watch the video below to see the app in action and understand its functionalities better.
The app utilizes multiple APIs to fetch and display weather data and air quality information.
-
Weather API:
- Provider: OpenWeatherMap API
- Endpoint:
https://api.openweathermap.org/data/2.5/weather
- Parameters:
q
(city name)appid
(API key)units
(measurement units - metric/imperial)
- Data Retrieved: Current temperature, weather conditions, wind speed, humidity, sunrise, and sunset times.
-
Air Quality API:
- Provider: OpenWeatherMap API
- Endpoint:
https://api.openweathermap.org/data/2.5/air_pollution
- Parameters:
lat
(latitude)lon
(longitude)appid
(API key)
- Data Retrieved: Air Quality Index (AQI), pollutant concentrations.
The app uses local storage to save the list of cities added by the user. This ensures that users' preferences are maintained between sessions. The storage is managed using a combination of text files and shared preferences.
Background images change based on the current weather conditions (clear, cloudy, rainy, etc.) and the time of day (day or night). This is determined by the weather condition codes and icon data provided by the weather API.
- Home Screen: Displays the current weather of the selected city, with options to refresh the data or search for a new city.
- City Search Screen: Allows users to search for cities and add them to their list.
- Weather Details Screen: Provides a detailed view of the weather conditions, including temperature variations and weather summaries.
- Air Quality Screen: Shows the AQI and related health recommendations.
- Flutter: The app is built using the Flutter framework, providing a smooth and responsive cross-platform experience.
- Dart: The programming language used for Flutter development.
- Google Fonts: For custom and stylish fonts.
- Path Provider: To access the file system for data storage.
- Shared Preferences: For simple key-value storage to save user preferences.
Stay prepared, stay informed, and stay WeatherWise!