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.
Untitled.video.-.Made.with.Clipchamp.6.mp4
-
- 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: flet is a Python package that provides a set of Flutter widgets for building user interfaces using the Python programming language.
-
- 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.
- 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.
- Clone this repository to your local machine:
git clone https://github.com/vikasharma005/WEATHER-APP.git
- Navigate to the project directory:
cd WEATHER-APP
- Install the required dependencies:
# Assuming you have Flutter and Python set up
flutter pub get
pip install flet
- Run the Flutter app on your connected device or emulator:
flet -r main.py
-
Input the desired city name in the app's input field and submit.
-
The app will fetch the weather data using the API and display it on the screen.
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';
// ...
Contributions to this project are welcome! If you find any issues or want to enhance the app, feel free to submit a pull request.
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.