particles_flutter
3.2.0, released 4 months ago by an unverified publisher
High‑performance particle animation widget for Flutter
WASM-ready
What it does
Provides a customizable particle system with physics, lifetime animations, and interaction. It renders shapes, trails, and supports burst emitters and boundary behaviors.
AI-written summary of version 3.2.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- Need animated particle effects like confetti, fireworks, or background stars
- Want fine‑grained control over particle lifetime, color, scale, and interaction
- Require a reusable widget that can be dropped into any Flutter layout
Skip it when
- You only need simple static graphics or basic animations
- Your project targets very low‑end devices where performance is critical
Strengths
- Extremely customizable shapes and physics
- Built‑in interaction (hover, tap, attractors)
- Efficient pooling and burst emitters
- Supports all platforms (web, mobile, desktop)
Weaknesses
- Requires Flutter 3.10+ (Dart >=3.0.0)
- No code generation or hooks support
- Large API surface can be overwhelming for beginners
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 0
Add dependency via flutter pub add particles_flutter; no permissions or build_runner needed
import 'package:particles_flutter/engine.dart';
import 'package:particles_flutter/shapes.dart';
Particles(
width: MediaQuery.of(context).size.width,
height: MediaQuery.of(context).size.height,
boundType: BoundType.WrapAround,
particles: List.generate(80, (_) {
final rng = Random();
return CircularParticle(
radius: rng.nextDouble() * 4 + 1,
color: Colors.white.withValues(alpha: 0.7),
velocity: Offset(
(rng.nextDouble() - 0.5) * 60,
(rng.nextDouble() - 0.5) * 60,
),
);
}),
)Alternatives
Packages that do the same job and could replace particles_flutter.
- flutter_animate
Simpler animation library for basic effects, but lacks particle physics and lifetime control
70Compare