Simple weather application written in Flutter, utilizing the Bloc state management pattern.
This application allows users to check the current weather as well as the forecast for the upcoming days. It uses an external weather API to fetch weather data. API: https://www.weatherapi.com
- Displaying the current weather for a specified city.
- Weather forecast for the upcoming days.
- Weather icons corresponding to the current weather conditions.
- Flutter
- Bloc (BLoC - Business Logic Component)
- HTTP (for communication with the weather API)
- JSON serialization (for data parsing)
- Clone this project to your local repository.
- Open the project in a development environment such as Android Studio or Visual Studio Code.
- Run
flutter pub get
in the console to install all dependencies. - Configure the API key for the weather service if required.
- Run the application on a physical device or emulator using
flutter run
.
To configure the application with your own API key:
- Register on the provider's weather service website (weatherapi.com) and obtain an API key.
- In the
secrets.dart
file, add your API key as follows:
class Secrets { static String apiKey() { return 'Enter your Api'; } }
- Use the
apiKey
variable to make requests to the weather service in the application.
If you encounter any issues related to installation or using the application, please contact us, the developers, by raising an issue in the Issues section.
Jakub Sierocki - mrkuba1
This project is licensed under the MIT License - see the LICENSE file for details.