A simple Flutter weather app that displays real-time weather information based on the user's location using the OpenWeatherMap API.
- Fetches current weather data for the user's location
- Displays temperature, weather condition, sunrise, sunset, and more
- Animated weather illustrations based on current weather conditions
- Clean and responsive UI design
- Supports both dark and light themes
- Flutter installed on your machine. For installation instructions, visit Flutter Installation Guide.
-
Clone the repository:
git clone https://github.com/your-username/flutter-weather-app.git
-
Change into the project directory:
cd flutter-weather-app
-
Install dependencies:
flutter pub get
-
Obtain an API key from OpenWeatherMap and replace
YOUR_API_KEY
inlib/api_keys.dart
with your actual API key.
Run the app on an emulator or physical device:
flutter run
The app supports both light and dark themes. The theme is determined based on the system theme ( light/dark) by default. You can manually toggle between themes in the app settings.
- http for making HTTP requests.
- geolocator for retrieving the user's location.
- lottie for displaying Lottie animations.
- geocoding for converting coordinates to location names.
Contributions are welcome! Feel free to open issues or submit pull requests.
- Weather data provided by OpenWeatherMap.
- Lottie animations by LottieFiles.