com_sunny_weather 0.0.1 copy "com_sunny_weather: ^0.0.1" to clipboard
com_sunny_weather: ^0.0.1 copied to clipboard

This library give you to get the current weather of any location.

Here’s a professional and developer-friendly README.md file for your Flutter library named sunny_weather:


# 🌀️ sunny_weather

`sunny_weather` is a Flutter library that allows developers to easily fetch the current weather of any location and display beautiful weather-specific UIs like clouds, rain, and sunny scenes.

## ✨ Features

- πŸ“ Fetch real-time weather for any location (using coordinates or city name)
- πŸŒ₯️ Dynamic weather-based UI:
  - Sunny View
  - Cloudy View
  - Rainy View
- 🧩 Easily pluggable into any Flutter app
- πŸ”§ Clean and customizable widgets

## πŸ“¦ Installation

Add this to your `pubspec.yaml`:

```yaml
dependencies:
  sunny_weather: ^1.0.0

Then run:

flutter pub get

πŸ› οΈ Usage #

1. Import the package #

import 'package:sunny_weather/sunny_weather.dart';

2. Fetch Weather #

final weather = await SunnyWeather.getWeather(
  latitude: 28.6139,
  longitude: 77.2090,
);

3. Display Weather UI #

Widget build(BuildContext context) {
  return WeatherDisplayWidget(weatherData: weather);
}

WeatherDisplayWidget automatically chooses the UI based on the weather condition (sunny, rainy, cloudy).

πŸ”§ Customization #

You can customize the weather UI styles by overriding properties in WeatherDisplayWidget.

WeatherDisplayWidget(
  weatherData: weather,
  sunnyIcon: Icons.wb_sunny,
  rainyAnimation: MyCustomRainAnimation(),
)

πŸ“ Location Support #

This package can use device GPS or manual location input. For location-based fetch, ensure to ask permission using a plugin like geolocator.

πŸ“Έ Screenshots #

Sunny Rainy Cloudy
[] [] []

πŸ“‹ TODO #

  • Add support for more weather types (e.g. snow, storm)
  • Offline caching
  • Unit tests

πŸ“„ License #

MIT License. See LICENSE for details.


Made with ❀️ by [Your Name or Organization]


---

Let me know if you'd like:
- A sample project included
- Instructions on publishing to `pub.dev`
- Auto-detect location sample using `geolocator` or `location` plugin
0
likes
140
points
24
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

This library give you to get the current weather of any location.

License

MIT (license)

Dependencies

flutter

More

Packages that depend on com_sunny_weather