Skip to content
pubscout

thanos_snap_effect

0.0.9, released a year ago by an unverified publisher

A widget that applies a Thanos Snap particle effect to its child using a custom shader

WASM-ready
$ flutter pub add thanos_snap_effect
Source repository

What it does

Wrap any widget with Snappable to animate it with a particle burst effect. The effect is driven by an AnimationController or any Animation<double>.

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

Use it when

  • You want a visually striking exit or entrance animation for a widget
  • You need a reusable, customizable particle effect without writing shader code yourself
  • You want to animate lists or individual items with a snap effect

Skip it when

  • You need a lightweight animation without shader overhead
  • You are targeting platforms that do not support custom shaders (e.g., older web browsers)

Strengths

  • Highly customizable particle parameters
  • Uses a single shader for performance
  • Easy to integrate via a single widget

Weaknesses

  • Requires adding a custom shader file to pubspec
  • Only works on platforms that support custom shaders (Android, iOS, web, desktop)
  • No support for non-animated use cases

Setup

Kind
Flutter widgets
Effort
Medium
Code generation
No
Direct dependencies
0

Add the shader file to pubspec.yaml under flutter.shaders and reference the path. No build_runner needed.

```dart
Snappable(
  animation: _controller,
  child: MyWidget(),
  outerPadding: const EdgeInsets.all(40.0),
  style: SnappableStyle(
    particleLifetime: 0.6,
    fadeOutDuration: 0.3,
    particleSpeed: 1.0,
    particleSize: const SnappableParticleSize.squareFromRelativeWidth(0.01),
  ),
);
```

Alternatives

Packages that do the same job and could replace thanos_snap_effect.