Skip to content
pubscout

floating_animation

1.1.0, released a year ago by an unverified publisher

Widget for smooth animated background floating shapes, icons, and PNG images.

WASM-ready
$ flutter pub add floating_animation
Source repository

What it does

Creates customizable and dynamic floating shapes, icons, or PNG images as a background layer. Supports properties like color, size, speed, direction, spawn rate, rotation, and pulsing opacity.

AI-written summary of version 1.1.0, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need an animated floating background with shapes, icons, or custom PNGs.
  • You require runtime adjustments to speed, size, or direction of floating elements.

Skip it when

  • You need complex vector animations or timeline-based sequencing.
  • You are building game mechanics that require physics-based collision detection.

Strengths

  • Supports shapes, icons, and transparent PNG images
  • Configurable speed, spawn rate, size, direction, rotation, and opacity pulsing
  • Seamless state changes at runtime without restarting the animation

Weaknesses

  • Limited to floating background particle-like animations
  • Not a full physics or game engine

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
0
FloatingAnimation(
  maxShapes: 50,
  speedMultiplier: 1.0,
  sizeMultiplier: 1.0,
  selectedShape: 'circle',
  shapeColors: {
    'circle': Colors.blue,
    'rectangle': Colors.green,
    'heart': Colors.pink,
    'triangle': Colors.purple,
  },
  direction: FloatingDirection.up,
  spawnRate: 10.0,
)

Alternatives

Packages that do the same job and could replace floating_animation.

  • flutter_animate

    For general-purpose implicit animations and staggered widget effects rather than continuous floating background shapes.

  • lottie

    If you prefer complex vector-based designer animations exported from After Effects.