Giter Club home page Giter Club logo

assignment's Introduction

Weather App

Overview

A simple weather app built with Flutter that fetches and displays current weather information for a given city using the Weatherstack API. The app consists of a home screen to search for a city's weather and a weather details screen to display the weather data.

Images

Main Form Main Form

Features

  • Search Functionality: Search for weather in any city.
  • Weather Details: Displays current temperature, weather condition, humidity, wind speed, wind direction, and cloud cover.
  • Error Handling: Shows error messages if the API call fails or if the city name is invalid.
  • Data Persistence: Saves the last searched city.
  • Responsive Design: Works on mobile and tablet devices.
  • Refresh Functionality: Refresh weather data on the details screen.

Requirements

  • Flutter SDK

Setup

  1. Clone the repository

    git clone https://github.com/Aihrarshaikh/Weather
    cd Weather
  2. Install dependencies

    flutter pub get
  3. Run the app

    flutter run

Usage

  1. Home Screen:

    • Enter the city name in the search bar.
    • Click on the "Get Weather" button to fetch weather data for the entered city.
    • If the text field is empty, a pop-up will alert the user.
  2. Weather Details Screen:

    • Displays the weather details for the searched city.
    • Use the floating action button to refresh the weather data.

Error Handling

  • Invalid City Name: Displays a user-friendly error message.
  • API Call Failures: Shows an appropriate error message.

Dependencies

  • http: For making HTTP requests.
  • provider: For state management.

License

This project is licensed under the MIT License.

assignment's People

Contributors

aihrarshaikh avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.