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

weather_animation のカバー
パッケージ詳細v1.2.0

weather_animation

このパッケージには美しい天気アニメーションが含まれています。天気コンフィギュレーターで簡単にセットアップできます!

AndroidiOSWebmacOSWindowsLinux
30日間ダウンロード
1040
いいね数
133
Pub ポイント
160

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

flutter pub add weather_animation

パッケージ概要

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

weather_animation パッケージは、Flutterアプリに視覚的に魅力的な天気テーマのアニメーションを提供し、雨、雪、雲などのダイナミックなエフェクトを含んでいます。使いやすさを重視して設計されており、迅速なセットアップとカスタマイズが可能な天気コンフィギュレーターを搭載しています。複数のプラットフォームでアプリの背景を強化したり、没入型の天気体験を作成するのに最適です。アニメーションは滑らかでパフォーマンスに優れており、Flutterのレンダリング機能を最大限に活用しています。Android、iOS、Web、macOS、Windows、Linuxをサポートしており、クロスプラットフォームプロジェクトに非常に適しています。

用途

  • 天気効果でアプリの背景を強化する
  • 没入型の天気ダッシュボードの作成
  • 天気予報アプリにビジュアルな魅力を加える
  • アニメーションインターフェースによるユーザー参加の向上
  • テーマ付きモバイルまたはウェブアプリの設計

主な機能

  • 事前構築された天気アニメーション(雨、雪、雲)
  • 使いやすい天気設定ツール
  • クロスプラットフォーム対応
  • デバイス間でのスムーズなパフォーマンス
  • カスタマイズ可能なアニメーションパラメータ
  • Flutter のレンダリングエンジンとの統合

適している対象

  • 視覚的な向上を求めるApp開発者
  • 天気テーマのUIを構築するデザイナー
  • アニメーション背景効果を必要とするプロジェクト
  • クロスプラットフォームのFlutterアプリケーション
  • 豊富なビジュアルを最小限のセットアップで実現したい開発者

注意事項

  • 低性能デバイスでのパフォーマンスに影響を与える可能性があります
  • 複雑なシーンには注意深い最適化が必要です
  • 事前に定義された天気タイプに限定
  • バックグラウンドレイヤーに最適、インタラクティブな要素には不向き
  • レンダリングに Flutter のグラフィックスパイプラインに依存しています

元の README

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

telegram_badge pub_badge configurator_badge repo_star_badge license_badge code_size_badge

all_scenes

🌇 weather_animation

Create weather scenes and animate as your heart desires. Simple and free.

Try the Weathunits configurator for setting weather scenes directly in the WEB!

Put an on Pub and favorite ⭐ on GitHub to keep up with changes and not miss new releases!

Motivation

  • 🎨 colorful weather scenes without using gif/png and stuff source
  • 🆓 free license for use in your projects (including commercial ones)
  • 🎛 easy creation of scenes and easy customization when needed
  • 🌅 configurator for easy creation of weather scenes
  • 😅 enjoy yourself and you with another fun package

Table of Contents

How to use simply?

Import the library:

import 'package:weather_animation/weather_animation.dart';
Use WeatherScene

Check the provided list of ready-made weather scenes in the WeatherScene enumeration and select the desired one through the getter:

@override
Widget build(BuildContext context) {
  return WeatherScene.sunset.sceneWidget;
}

or for more customization, use WrapperScene.weather:

@override
Widget build(BuildContext context) {
  return WrapperScene.weather(scene: WeatherScene.sunset);
}
Use WrapperScene

Specify a list of weather widgets and a list of colors to create a beautiful background gradient:

@override
Widget build(BuildContext context) {
  return const WrapperScene(
      colors: [
        Color(0xff283593),
        Color(0xffff8a65),
      ],
      children: [
        SunWidget(),
        CloudWidget(),
        WindWidget(),
      ],
    );
}

If necessary, specify a configuration file to fine-tune the weather widget:

// ...
SunWidget(
  sunConfig: SunConfig(
    width: 262.0,
    blurSigma: 10.0,
    blurStyle: BlurStyle.solid,
    isLeftLocation: true,
    coreColor: Color(0xffffa726),
    midColor: Color(0xd6ffee58),
    outColor: Color(0xffff9800),
    animMidMill: 2000,
    animOutMill: 1800,
  ),
),
// ...
Use weather_configurator app
  • online in web → Weathunits configurator
  • offline after build project on your gadget (path example/weathunits_configurator. Learn more here)

Library structure

The only point of using the library is to import the following file:

import 'package:weather_animation/weather_animation.dart';

The following weather widgets are available:

Widget weather A configuration class
CloudWidget CloudConfig
RainWidget
RainDropWidget*
RainConfig
SnowWidget
SnowflakeWidget*
SnowConfig
SunWidget SunConfig
ThunderWidget
SingleThunderWidget*
ThunderConfig
WindWidget WindConfig

💡Tip: Widgets under * represent a single weather item. Use these when another Stack setting is required.

Each weather widget accepts an optional configuration parameter to fine-tune the widget.

Configuration files ...Config
  • have correctly toString, operator ==, hashCode
  • have a copyWith method to clone the object
  • have de/serialization handling (toJson and fromJson). Note: not all fields
  • are inherited from class WeatherConfig
About WrapperScene

Also, there is a WrapperScene widget for quick scene adjustment, which allows you to scale the weather scene relative to the specified canvas dimensions. Has a clipper and scene widget decoration.

About BackgroundWidget

The BackgroundWidget class allows you to create a color background in the form of a linear gradient. Specify the desired colors and you're done.

Author

You can contact me or check out my activities on the following platforms:

Additional information

Made with ❤️. Enjoy it!


🏷 tags: weather, animation, weather conditions, weather scenes

カテゴリー

依存関係

依存関係一覧 2 件

ソースリポジトリ

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