패키지, 저장소 및 앱 카테고리 검색

weather_animation 표지
패키지 상세v1.2.0

weather_animation

이 패키지는 아름다운 날씨 애니메이션을 포함하고 있습니다. 날씨 구성 도구로 쉽게 설정하세요!

AndroidiOSWebmacOSWindowsLinux
30일 다운로드
1천
좋아요
133
Pub 점수
160

패키지 설치

flutter pub add weather_animation

패키지 개요

공개 정보를 바탕으로 생성한 선택 가이드입니다.

weather_animation 패키지는 Flutter 앱에 시각적으로 매력적인 날씨 테마 애니메이션을 제공하며, 비, 눈, 구름과 같은 동적 효과를 포함합니다. 사용의 용이성을 고려하여 빠른 설정 및 맞춤화가 가능한 날씨 구성기 기능을 갖추고 있습니다. 앱 배경을 강화하거나 여러 플랫폼에서 몰입형 날씨 경험을 만들기에 이상적입니다. 애니메이션은 부드럽고 성능이 우수하며, Flutter의 렌더링 기능을 최대한 활용합니다. Android, iOS, Web, macOS, Windows, Linux를 지원하여 크로스플랫폼 프로젝트에 매우 유용합니다.

사용 사례

  • 날씨 효과로 앱 배경 향상
  • 몰입형 날씨 대시보드 만들기
  • 날씨 예보 앱에 시각적 매력 추가하기
  • 애니메이션 인터페이스를 통한 사용자 참여도 향상
  • 테마가 있는 모바일 또는 웹 애플리케이션 설계

주요 기능

  • 사전 구축된 날씨 애니메이션(비, 눈, 구름)
  • 사용이 간편한 날씨 구성기
  • 크로스 플랫폼 지원
  • 기기 간 원활한 성능
  • 사용자 지정 가능한 애니메이션 매개변수
  • Flutter 렌더링 엔진과의 통합

적합한 대상

  • 시각적 향상을 원하는 앱 개발자
  • 기상 주제의 UI를 만드는 디자이너
  • 애니메이션 배경 효과가 필요한 프로젝트
  • 크로스플랫폼 플러터 애플리케이션
  • 풍부한 시각 효과를 최소한의 설정으로 원하는 개발자

고려 사항

  • 저사양 기기에서 성능에 영향을 미칠 수 있습니다
  • 복잡한 장면을 위한 신중한 최적화가 필요합니다
  • 사전 정의된 날씨 유형에 한정
  • 배경 레이어에 가장 적합하며, 상호작용 요소에는 부적합
  • 렌더링에 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 개

소스 저장소

이 패키지를 사용하는 프로젝트