GitHub 代码仓yashas-hm/lava-lamp-effect

熔岩灯效果

🌋✨ 将您的应用沉浸于熔岩运动的迷人之美,打造令人着迷、流畅的动画效果。🫧

熔岩灯效果 项目封面
星标
7
复刻
1
最近推送(UTC)
2025年5月6日
项目状态
未归档

原始 README

以下为英文项目原文快照,最新内容请访问 GitHub。

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.

Yashas H Majmudar GitHub avatar
GitHub 作者

Yashas H Majmudar ↗

📱 Full Stack Developer and Flutter sorcerer, weaving magic into mobile apps and web solutions. Developer by day and a Musician by night. 🎶

SWE @ NestUSA官方网站 ↗
语言Dart

分类

此仓库发布的插件

使用的依赖

依赖清单 3 项

  • flutter{"sdk":"flutter"}
  • flutter_test开发依赖{"sdk":"flutter"}
  • flutter_lints开发依赖^5.0.0

如何选择适合项目的代码仓?

先按使用场景筛选,再比较项目活跃情况,最后到原始仓库核对使用要求。

  1. 通过仓库名、作者或描述搜索,再按技术分类缩小范围。
  2. 结合星标、复刻与最近推送比较项目;星标反映社区关注,不代表质量保证。
  3. 使用前在 GitHub 核对 README、许可证与 Issues。

来源与维护

“A repository is the most basic element of GitHub.”

GitHub Docs — About repositories ↗