Skip to content
/ weather Public

A user-friendly Flutter weather app with real-time data, geolocation-based updates, search, 7-day forecasts, and robust architecture using Flutter Bloc, dependency injection, and null safety.

Notifications You must be signed in to change notification settings

Sadoge/weather

Repository files navigation

Flutter Weather App

A simple weather app built with Flutter that displays current weather information for a specified city. The app makes use of the Weather API and demonstrates how to create and manage API calls, handle errors, and use the BLoC pattern for state management.

Features

  • Fetch and display current weather information for a city
  • Show weather data, including temperature, humidity, and wind speed
  • Error handling for API requests
  • BLoC pattern for state management using flutter_bloc
  • Dependency injection using get_it
  • Secure API key storage using flutter_dotenv

Setup

  1. Clone this repository:

git clone https://github.com/Sadoge/weather.git

  1. Install the dependencies:

flutter pub get

  1. Create a .env file in the project root and add your Weather API key:

WEATHER_API_KEY=your_api_key_here

  1. Run the app:

flutter run

  1. Demo

A live version of the app is available here

Dependencies

License

MIT License. See LICENSE for more information.

About

A user-friendly Flutter weather app with real-time data, geolocation-based updates, search, 7-day forecasts, and robust architecture using Flutter Bloc, dependency injection, and null safety.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published