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

패키지 상세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

카테고리

소스 저장소

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

아직 데이터가 없습니다.