random_shapes_animator 1.0.1 copy "random_shapes_animator: ^1.0.1" to clipboard
random_shapes_animator: ^1.0.1 copied to clipboard

A fully customizable Flutter widget that adds sparkling or animated shapes such as stars, circles, or snowflakes to any widget. Great for festive UIs, celebration screens, birthdays, holidays, special [...]

random_shapes_animator #

A fully customizable Flutter package that adds sparkling or animated shapes (like stars, circles, or snowflakes) to your widgets. Perfect for festive UIs, celebration screens, or decorative components. Easily enhance your UI with dynamic, animated elements that are both lightweight and smooth in performance. Available on pub.dev

pub package

Made by - Priyanshu Dutta

Visual #

https://github.com/user-attachments/assets/fd683a42-db9f-43c5-8527-ec34014e1f5d

How to use #

RandomShapesAnimator(
  shape: Shape.star,
  child: Text('Hello!'),
)

✨ Features #

  • 🌟 Add dynamic shapes like star, circle, or snowflake.
  • 🧩 Easily wrap around any widget.
  • 🎯 Customizable speed, color, opacity, trail length, and more.
  • 🖼️ Adjustable animation area size.
  • ⚡ Lightweight and smooth performance.

Properties #

Property Type Description
child Widget The widget to be wrapped with the sparkle animation.
shape Shape enum The shape of the sparkles (star, circle, snowflake).
starCount int? Number of sparkles. Default: 15
maxSpeed double? Maximum speed of sparkle movement. Default: 0.3
trailLength int? Length of the trail following each sparkle. Default: 10
areaSize Size? The rectangular area within which sparkles move. Default: Size(200, 250)
sparkleColor Color? Color of the sparkles. Default: Colors.white
minOpacity double? Minimum opacity for sparkles. Default: 0.5
maxOpacity double? Maximum opacity for sparkles. Default: 1.0

Installation #

Add the following to your pubspec.yaml:

dependencies:
  random_shapes_animator: ^1.0.0
4
likes
0
points
46
downloads

Publisher

unverified uploader

Weekly Downloads

A fully customizable Flutter widget that adds sparkling or animated shapes such as stars, circles, or snowflakes to any widget. Great for festive UIs, celebration screens, birthdays, holidays, special events, or decorative effects. Designed to be lightweight, smooth, and highly performant. Easily integrate dynamic, beautiful animated elements into your app without heavy performance costs. Perfect for enhancing user interfaces with interactive, lively, and eye-catching visual animations.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on random_shapes_animator