This Flutter project is a simple weather forecast application that utilizes a mock REST API to fetch and display weather data for the present day and the next 5 days. The app is designed to showcase basic Flutter development skills, including API integration, error handling, and UI implementation.
To run this project, ensure that you have Flutter installed on your machine. If not, you can follow the official Flutter installation guide to set up your development environment.
-
Clone this repository to your local machine:
git clone https://github.com/Vikesh8107/FlutterWeatherApp.git
-
Navigate to the project directory:
cd FlutterWeatherApp
-
Install dependencies:
flutter pub get
-
Run the app:
flutter run
The app uses the http package to simulate API requests. The API endpoint is a mock service that provides weather data for the specified location.
The UI displays weather details for the present day and the next 7 days. It includes temperature, condition, humidity, and other relevant information. A loading indicator is shown while fetching data, and error messages are displayed for unsuccessful API requests or invalid responses.
- Ensure that your device/emulator has internet access to fetch weather data.
- This app is developed for educational purposes and uses a mock API for demonstration.
Feel free to explore and modify the code according to your preferences or add additional features as needed. If you encounter any issues or have questions, please don't hesitate to reach out.