Search packages, repositories and app categories

lava_lamp_effect cover
Package detailsv1.0.3

lava_lamp_effect

A widget that provides a customizable lava lamp effect with fluid animations, adjustable colors, sizes, and speeds.

AndroidiOSWebmacOSWindowsLinux
30-day downloads
424
Likes
7
Pub points
150

Install package

flutter pub add lava_lamp_effect

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

A Flutter widget that creates a smooth, customizable lava lamp effect with fluid animations. It supports adjustable colors, sizes, and animation speeds, making it ideal for adding dynamic background visuals to apps. The effect is rendered using shaders for performance across platforms. Perfect for creative interfaces, splash screens, or immersive backgrounds. Works seamlessly on Android, iOS, Web, macOS, Windows, and Linux.

Use cases

  • Splash screens
  • Background visuals
  • Creative app interfaces
  • Interactive dashboards
  • Mobile and web applications

Key features

  • Fluid animated blobs
  • Customizable colors
  • Adjustable speed and size
  • Shader-based rendering
  • Cross-platform support
  • Real-time animation control

Suitable for

  • Designers seeking visual flair
  • Developers building immersive UIs
  • Apps needing engaging backgrounds
  • Prototypes with dynamic effects
  • Projects targeting multiple platforms

Considerations

  • May impact performance on low-end devices
  • Requires understanding of shader basics
  • Limited customization beyond core parameters
  • Not suitable for high-performance gaming
  • Best used in non-critical UI areas

Original README

Original README snapshot from the linked source repository. Visit the repository for the latest content.

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.

Categories

Source repository

Projects using this package

No data available yet.