搜索插件、代码仓与 APP 分类

flutter_weather_bg_null_safety 封面
插件详情v1.0.0

flutter_weather_bg_null_safety

提供多种天气背景动画效果,涵盖15种天气类型,包括晴天、雨天、雪天等...

AndroidiOSWebmacOSWindowsLinux
近 30 天下载
96
喜欢数
76
Pub 分数
150

安装插件

flutter pub add flutter_weather_bg_null_safety

插件介绍

基于插件公开信息、社区数据与项目使用情况整理的选型参考。

一个 Flutter 包,为应用程序提供动态天气主题背景动画,支持 15 种天气类型,如晴天、雨天和雪天。它使用空安全的 Dart 代码,并可在多个平台无缝集成。该包通过动画渐变和着色器,增强用户体验,带来视觉上引人入胜的实时天气效果。非常适合天气应用、仪表板或任何希望创建沉浸式氛围视觉效果的应用。

适合场景

  • 天气应用
  • 交互式应用背景
  • 仪表板 UI 增强
  • 移动和Web应用界面
  • 主题应用设计

主要特点

  • 15 种天气类型动画
  • 空安全的 Dart 实现
  • 跨平台支持
  • 基于着色器的视觉效果
  • 通过 pub 实现轻松集成
  • 可自定义的天气过渡

适合对象

  • 开发天气应用的开发者
  • 寻求动态背景的UI设计师
  • 需要氛围视觉主题的应用
  • 跨平台移动和Web项目
  • 专注于视觉互动的创意开发者

使用建议

  • 可能增加应用包大小
  • 性能取决于设备功能
  • 需要理解 Flutter 渲染机制
  • 超出所提供天气类型的定制功能有限
  • 最适合全屏背景

原始 README

以下为关联源码仓库的 README 原文快照,最新内容请访问源码仓库。

flutter_weather_bg_null_safety

#原仓库作者地址 https://github.com/xiaweizi/flutter_weather_bg

Pub Version

A rich and cool weather dynamic background plug-in, supporting 15 weather types. README_ZH

Features

  • It supports 15 weather types: sunny, sunny evening, cloudy, cloudy evening, overcast, small to medium heavy rain, small to medium heavy snow, fog, haze, floating dust and thunderstorm
  • Support dynamic scale size, adapt to multi scene display
  • Supports over animation when switching weather types

Supported platforms

  • Flutter Android
  • Flutter iOS
  • Flutter web
  • Flutter desktop

Installation

Add flutter_weather_bg_null_safety: ^1.0.0 to your pubspec.yaml dependencies. And import it:

import 'package:flutter_weather_bg_null_safety/flutter_weather_bg.dart';

How to use

To configure the weather type by creating WeatherBg, you need to pass in the width and height to complete the final display

WeatherBg(weatherType: _weatherType,width: _width,height: _height,)

Preview

Regular pageview display effect

home

List listview display effect

list

The grid GridViewdisplays the effect and supports the dynamic switching of the grid number

check

Dynamic reduction example demonstration

width_height

Toggle weather type transition animation

check

License

MIT

所属分类

源码仓库

使用此插件的项目