Skip to content

Asim-Sidd02/WeatherApp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Flutter Weather App

A simple weather app built with Flutter that allows users to search for weather information by city.

App Preview

Table of Contents

Introduction

A simple weather app built with Flutter that allows users to search for weather information by city

Features

  • Search for weather information by city name
  • Display current temperature, weather condition, humidity, and wind speed
  • Responsive design that works on both mobile and tablet devices
  • Refresh button to fetch updated weather data
  • Persistent storage of the last searched city

Prerequisites

Before running the application, ensure you have the following installed:

  • Flutter SDK
  • Dart SDK
  • Android SDK / Xcode (depending on your target platform)
  • IDE (e.g., VS Code, Android Studio) with Flutter and Dart plugins

Installation

Clone the repository:

git clone https://github.com/Asim-Sidd02/WeatherApp.git
cd Weather-App


Install the dependencies using flutter:

flutter pub get

Run the project:

flutter run

File Structure

The project directory structure is organized as follows:

  • lib/:

    • main.dart
  • Provider/:

    • weather_provider.dart
  • services/:

    • weather_service.dart
  • Screens/:

    • home_screen.dart
    • weather_detail_screen.dart
  • README.md: Project overview and file structure details.

  • pubspec.yaml: Flutter project configuration file with dependencies and other settings.

Provider

The Provider/ directory contains data model classes used throughout the application:

  • weather_provider: Fetches weather data from the OpenWeatherMap API

Services

The services/ directory contains service classes responsible for data handling and API interactions:

  • weather_service.dart: Implements methods to fetch weather data from a public API.

Screens

The lib/ directory contains screen files:

  • home_screen.dart: Search for weather information by city name
  • weather_screen.dart: Displays the weather information

Dependencies

This project relies on the following Flutter packages:

  • http: For making HTTP requests to fetch data from the weather API.
  • provider: For state management

These dependencies are specified in the pubspec.yaml file.

Author

License

This project is licensed under the MIT License. See the LICENSE file for details.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published