flutter_weather_bg
15 मौसम प्रकारों को शामिल करते हुए विभिन्न मौसम पृष्ठभूमि एनीमेशन प्रभाव प्रदान करें, जिसमें सूर्यमंडल, वर्षा, हिमपात आदि शामिल हैं...
एक समृद्ध और शानदार मौसम डायनामिक बैकग्राउंड प्लगइन
यह अंग्रेज़ी मूल स्नैपशॉट है। नवीनतम सामग्री GitHub पर देखें।
A rich and cool weather dynamic background plug-in, supporting 15 weather types.
Used by SimplicityWeather to render weather backgrounds. If you want to try the app directly, download the APK here.
CustomPainter on Flutter canvas| Platform | Status |
|---|---|
| Android | ✅ |
| iOS | ✅ |
| Web | ✅ |
| macOS | ✅ |
| Windows | Not tested |
| Linux | Not tested |
>= 3.0.0>= 3.0.0 < 4.0.0 (null-safety)Available on pub.dev. Add the dependency to your pubspec.yaml:
dependencies:
flutter_weather_bg: ^3.1.0
Then run:
flutter pub get
And import it wherever you need:
import 'package:flutter_weather_bg/flutter_weather_bg.dart';
Drop a WeatherBg into your widget tree, and pass the desired weatherType together with a width and a height:
import 'package:flutter/material.dart';
import 'package:flutter_weather_bg/flutter_weather_bg.dart';
class WeatherDemo extends StatelessWidget {
const WeatherDemo({super.key});
@override
Widget build(BuildContext context) {
return Scaffold(
body: WeatherBg(
weatherType: WeatherType.thunder,
width: MediaQuery.of(context).size.width,
height: MediaQuery.of(context).size.height,
),
);
}
}
Switching weatherType at runtime will automatically trigger a cross-fade animation.
A full demo (covering PageView, ListView, GridView, size animation and type switching) lives in example/.
Regular PageView effect
ListView effect
GridView effect with a dynamically-switchable column count
Dynamic size demonstration
Weather type cross-fade transition
Issues and pull requests are welcome — feel free to open one on the issue tracker.
If you want to run the example locally:
git clone https://github.com/xiaweizi/flutter_weather_bg.git
cd flutter_weather_bg/example
flutter pub get
flutter run # or: flutter run -d chrome
Released under the MIT License. Copyright © 2020-2026 xiaweizi.
निर्भरता सूची 3 आइटम
{"sdk":"flutter"}{"sdk":"flutter"}^5.0.0उपयोग के अनुसार छाँटें, गतिविधि की तुलना करें और अपनाने से पहले मूल प्रोजेक्ट की आवश्यकताएँ जाँचें।
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗