Skip to content

Latest commit

 

History

History
88 lines (52 loc) · 3.29 KB

README.md

File metadata and controls

88 lines (52 loc) · 3.29 KB

Weather App using Flet and Python

This is a simple weather mobile application developed using the Flutter framework and Python. The app allows users to input a city name and retrieve the corresponding weather information. It utilizes an API to fetch weather data and displays it using various components provided by the Flutter framework through the flet package.

Demo

Untitled.video.-.Made.with.Clipchamp.6.mp4

Technologies Used

  • Flutter Logo
    • Flutter: Flutter is an open-source UI software development kit created by Google. It is used for building natively compiled applications for mobile, web, and desktop from a single codebase.
  • flet Logo
    • flet: flet is a Python package that provides a set of Flutter widgets for building user interfaces using the Python programming language.
  • Python Logo
    • Python: Python is a versatile and widely-used programming language known for its readability and simplicity. It is used in this project to create the backend logic and interaction with APIs.

Features

  • User-friendly interface to input a city name.
  • Real-time weather data retrieval using a weather API.
  • Display of relevant weather information such as temperature, conditions, humidity, etc.
  • Cross-platform compatibility for both Android and iOS devices.

Installation

  1. Clone this repository to your local machine:
git clone https://github.com/vikasharma005/WEATHER-APP.git
  1. Navigate to the project directory:
cd WEATHER-APP
  1. Install the required dependencies:
# Assuming you have Flutter and Python set up
flutter pub get
pip install flet

Usage

  1. Run the Flutter app on your connected device or emulator:
flet -r main.py
  1. Input the desired city name in the app's input field and submit.

  2. The app will fetch the weather data using the API and display it on the screen.

API Usage

This app utilizes the Weather API to retrieve weather data. You need to obtain an API key and replace it in the code where the API is called.

// lib/services/weather_service.dart

const String apiKey = 'YOUR_API_KEY';
const String baseUrl = 'https://api.yourweatherapi.com';

// ...

Contributing

Contributions to this project are welcome! If you find any issues or want to enhance the app, feel free to submit a pull request.

License

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


Feel free to customize and expand upon this template to provide more information about your project, its features, setup, and usage. Make sure to replace placeholders like YOUR_API_KEY, https://yourweatherapi.com/, and others with your actual information.