Skip to content

This project demonstrates Flutter-Python integration using `flet`, building a cross-platform weather app. Combining Flutter UI with Python backend, it offers interactive real-time weather data retrieval.

License

Notifications You must be signed in to change notification settings

vikasharma005/WEATHER-APP

Repository files navigation

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.

About

This project demonstrates Flutter-Python integration using `flet`, building a cross-platform weather app. Combining Flutter UI with Python backend, it offers interactive real-time weather data retrieval.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages