A flutter weather app.
- Displays the current weather for a given location.
- Automatically retrieves the user's location or allows manual entry of a city.
- Shows a weather forecast for the next few days.
- Provides a user-friendly and visually appealing interface.
To run this app, you will need an API key from OpenWeatherMap. You can get a free key by signing up on their website: https://openweathermap.org/
Once you have your API key, follow these steps:
- Clone the repository:
git clone https://github.com/your-username/weather-app.git
- Navigate to the project directory:
cd weather-app
- Install the dependencies:
flutter pub get
- Create a
.env
file in the root directory and add your OpenWeatherMap API key:API_KEY=your_api_key
- Run the app:
flutter run
http
: For network communication with the OpenWeatherMap API.geolocator
: For location services.flutter_dotenv
: For loading environment variables.
This app uses the OpenWeatherMap API. You will need an API key to use the app. You can get a free API key from the OpenWeatherMap website.