A Flutter application to get weather data for a specific city and the current location using the OpenWeather API.
This app allows users to retrieve weather information for a specific city or their current location. It's built using the Flutter framework and relies on the OpenWeather API to fetch real-time weather data.
The weather data is obtained from the OpenWeather API. You will need an API key to access their services.
Follow these steps to run the app and start exploring weather information:
-
Obtain an OpenWeather API Key:
- Visit the OpenWeather API website and sign up for an API key.
-
Update the API Key:
- Replace the placeholder API key with your own in
lib/model/core/api_endpoints.dart
.
- Replace the placeholder API key with your own in
-
Running the App:
- Open your terminal and navigate to the project directory.
- Enter
flutter run
to start the app.
- Fetch weather data by city name.
- Retrieve weather data for the current location.
- View detailed weather information, including temperature, humidity, and wind speed.
- Flutter for providing a powerful framework for building cross-platform apps.
- OpenWeather for their API, which enables us to access real-time weather data.
Happy coding!