Skip to content

miggi92/flutter-weather

Repository files navigation

Weather App

A flutter weather app.

CI CD

Feature Video

Features

  • 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.

Screenshots

Desktop

Home Screen Home Screen Detail

Mobile

Home Screen Mobile Home Screen Mobile Detail

Usage

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:

  1. Clone the repository: git clone https://github.com/your-username/weather-app.git
  2. Navigate to the project directory: cd weather-app
  3. Install the dependencies:   flutter pub get
  4. Create a .env file in the root directory and add your OpenWeatherMap API key:
    API_KEY=your_api_key
    
  5. Run the app: flutter run

Dependencies

  • http: For network communication with the OpenWeatherMap API.
  • geolocator: For location services.
  • flutter_dotenv: For loading environment variables.

API

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.

License

MIT License

Sponsors

Sponsors