A Flutter weather application that fetches real-time weather data and forecasts using an API.
- Fetches current weather data for a given city
- Retrieves a multi-day weather forecast
- Uses
providerfor state management - Displays weather animations and icons
- Custom styling with
google_fontsandflex_color_scheme .envfile support for API key security
Ensure you have Flutter installed. You can check by running:
flutter --versiongit clone https://github.com/YOUR_USERNAME/ts_5_6_2_api.git
cd ts_5_6_2_apiflutter pub getCreate a .env file in the root directory and add your API key:
touch .envInside .env, add the following:
API_KEY=your_api_key_hereflutter runThis project uses the following Flutter packages:
| Package | Version |
|---|---|
| flutter | latest |
| cupertino_icons | ^1.0.6 |
| http | ^1.2.1 |
| webview_flutter | ^4.8.0 |
| flex_color_scheme | ^7.3.1 |
| google_fonts | ^6.2.1 |
| provider | ^6.1.2 |
| flutter_dotenv | ^5.1.0 |
| intl | ^0.19.0 |
| weather_icons | ^3.0.0 |
| weather_animation | ^1.0.1 |
This project is licensed under the MIT License.
Feel free to fork the repository and submit a pull request with improvements!
Happy coding! 🚀