lava_lamp_effect 1.0.3
lava_lamp_effect: ^1.0.3 copied to clipboard
A widget that provides a customizable lava lamp effect with fluid animations, adjustable colors, sizes, and speeds.
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 #
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.