[readme_src/weather_app_gif.gif]
This repository contains a weather application developed using Flutter and Dart for Android and iOS. The application utilizes the Provider package for state management, SharedPreferences for local storage, HTTP for accessing the OpenWeather API for weather and geocoding information, and Google Fonts for beautiful typography.
- Display of current weather, including temperature, weather description, humidity, and wind speed.
- Option of change theme color in runtime.
- Search based on manual search.
- Storage of last searched location for quick access.
- Flutter SDK: Flutter Installation
- Android/iOS device or emulator for running the application
- OpenWeather account to obtain an API key: OpenWeather
- Clone this repository to your local environment:
bashgit clone https://github.com/your-username/weather-app-flutter.git
- Navigate to the project directory:
bashcd weather-app-flutter
- Install Flutter dependencies:
bashflutter pub get
- Open the
lib/src/utils/keys.dart
file and insert your OpenWeather API key into theAPI_KEY
constant.
dartstatic const String openWeatherKey = 'your_api_key_here';
Ensure that the device or emulator is connected and run the following command within the project directory:
bashflutter run
The application will be compiled and launched on the device/emulator.
- provider: For state management.
- shared_preferences: For local storage of the last searched location.
- http: For accessing the OpenWeather API for weather and geocoding information.
- google_fonts: For beautiful typography in the application.
Contributions are welcome! Feel free to open an issue or submit a pull request with improvements, bug fixes, or new features.
This project is licensed under the MIT License.