パッケージ、リポジトリ、アプリカテゴリを検索

パッケージ詳細v3.1.0

flutter_weather_bg

15種類の天候(晴れ、雨、雪など)をカバーする、さまざまな天気背景アニメーション効果を提供します。

AndroidiOSWebmacOSWindowsLinux
30日間ダウンロード
128
いいね数
58
Pub ポイント
155

パッケージをインストール

flutter pub add flutter_weather_bg

パッケージ概要

公開情報に基づく選定ガイドです。参考としてご利用ください。

flutter_weather_bg は、Flutter パッケージで、アプリ用に動的な天気テーマの背景アニメーションを提供し、晴れ、雨、雪など15種類の天気状態をサポートしています。アニメーションされたグラデーションとシェーダーを使用して没入感のあるビジュアル効果を生成し、あらゆるプラットフォームでのユーザー体験を向上させます。シンプルな追加コマンドで Flutter プロジェクトにスムーズに統合でき、天気アプリやダッシュボード、あるいは雰囲気あるビジュアルを求めるすべてのアプリに最適です。クロスプラットフォーム対応により、Android、iOS、Web、macOS、Windows、Linux で一貫したパフォーマンスを実現します。

用途

  • 天気アプリ
  • インタラクティブダッシュボード
  • アプリオンボーディング画面
  • テーマ化されたUI要素
  • デジタルサイネージ

主な機能

  • 15 種の天気タイプアニメーション
  • シェーダーに基づくビジュアルエフェクト
  • クロスプラットフォーム互換性
  • pub を通じた簡単な統合
  • カスタマイズ可能な天気の遷移
  • デバイス間でのスムーズなパフォーマンス

適している対象

  • 天気アプリを開発する開発者
  • 雰囲気のある背景を探しているデザイナー
  • 動的なUI要素を必要とするアプリ
  • クロスプラットフォームのモバイルおよびウェブプロジェクト
  • クリエイティブなUI実験

注意事項

  • 低性能デバイスでのパフォーマンスに影響を与える可能性があります
  • Flutter レンダリングの理解が必要です
  • 天気の種類を超えるカスタマイズは限定的
  • 最小限の前面コンテンツと併用するのが最適です
  • 静的背景のニーズには適していません

元の README

関連するソースリポジトリの README 原文のスナップショットです。最新の内容はリポジトリをご覧ください。

flutter_weather_bg

Pub Version Pub Likes License: MIT Platform

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.

Features

  • 15 weather types: sunny, sunny night, cloudy, cloudy night, overcast, light/middle/heavy rain, light/middle/heavy snow, foggy, hazy, dusty and thunder
  • Dynamic width/height — the scene adapts automatically
  • Smooth cross-fade transition when the weather type changes
  • Pure Dart implementation (no native code); renders with CustomPainter on Flutter canvas

Supported platforms

Platform Status
Android ✅
iOS ✅
Web ✅
macOS ✅
Windows Not tested
Linux Not tested

Requirements

  • Flutter >= 3.0.0
  • Dart SDK >= 3.0.0 < 4.0.0 (null-safety)

Installation

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';

Usage

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

Preview

Regular PageView effect

home

ListView effect

list

GridView effect with a dynamically-switchable column count

grid

Dynamic size demonstration

width_height

Weather type cross-fade transition

transition

Contributing

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

License

Released under the MIT License. Copyright © 2020-2026 xiaweizi.

Star History

Star History Chart

カテゴリー

ソースリポジトリ

このパッケージを使用しているプロジェクト

データはまだありません。