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

lava_lamp_effect 封面
插件详情v1.0.3

lava_lamp_effect

一个提供可自定义熔岩灯效果的组件,具有流畅的动画、可调节的颜色、大小和速度。

AndroidiOSWebmacOSWindowsLinux
近 30 天下载
424
喜欢数
7
Pub 分数
150

安装插件

flutter pub add lava_lamp_effect

插件介绍

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

一个 Flutter 小部件,可创建平滑且可自定义的熔岩灯效果,具有流体动画。支持调整颜色、大小和动画速度,非常适合为应用程序添加动态背景视觉效果。该效果使用着色器渲染,以确保跨平台性能。适用于创意界面、启动画面或沉浸式背景。可在 Android、iOS、Web、macOS、Windows 和 Linux 上无缝运行。

适合场景

  • 启动画面
  • 背景视觉效果
  • 创意应用界面
  • 交互式仪表板
  • 移动和Web应用

主要特点

  • 流体动画斑点
  • 可自定义颜色
  • 可调节的速度和大小
  • 基于着色器的渲染
  • 跨平台支持
  • 实时动画控制

适合对象

  • 寻求视觉魅力的设计人员
  • 开发沉浸式 UI 的开发者
  • 需要吸引人背景的应用
  • 带有动态效果的原型
  • 面向多个平台的项目

使用建议

  • 可能会影响低端设备的性能
  • 需要了解着色器基础知识
  • 超出核心参数的自定义功能有限
  • 不适合高性能游戏
  • 最好用于非关键UI区域

原始 README

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

Lava Lamp Effect

🌋✨ Immerse your app in the hypnotic beauty of molten motion with the lava_lamp_effect, a Flutter package designed to bring mesmerizing, fluid animations to life. 🫧

Demo

Demo

Show some ❤️ and ⭐️ the Repo

Resources:

How to Use?

Adding this bubbly beauty to your UI is smoother than a lava blob floating to the top. Customize it with parameters like size, color, lavaCount, and speed to shape your very own lamp of wonder. 🛠️🌈

import 'package:flutter/material.dart';
import 'package:lava_lamp_effect/lava_lamp_effect.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          title: const Text('Lava Lamp Effect Demo'),
        ),
        body: Center(
          child: LavaLampEffect(
            size: Size(300, 500),
            color: Colors.deepPurple,
            lavaCount: 4,
            speed: 1,
            repeatDuration: Duration(seconds: 10),
          ),
        ),
      ),
    );
  }
}

Want a faster flow or more blobs? Crank up the speed or lavaCount and let the animation groove! 🎛️🎶

Features

  • 🫧 Smooth, organic lava motion
  • 🎨 Fully customizable color palette
  • 🧊 Adjustable blob size and count
  • ⏱️ Control animation speed and cycle time

Installation

Add this to your package's pubspec.yaml file:

dependencies:
  lava_lamp_effect: ^1.0.0

Contributions

License

This project is licensed under the MIT License, see the LICENSE file for details.

Credits

This package is inspired by flutter_lava_clock by Jaime Blasco.

所属分类

源码仓库

使用此插件的项目

暂无相关数据。