Skip to content
pubscout

confetti

0.8.0, released 2 years ago by funwith.app

Widget that emits confetti particles with customizable physics

WASM-ready
$ flutter pub add confetti
Source repository

What it does

ConfettiWidget renders animated confetti particles on the screen. The ConfettiController controls the emission timing and lifecycle.

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

Use it when

  • Celebrate achievements or milestones
  • Add visual flair to UI interactions
  • Provide feedback after user actions

Skip it when

  • Use with very high particle counts on low-end devices
  • Rely on it for critical UI flows where performance is paramount

Strengths

  • Easy to integrate via a single widget
  • Highly configurable physics and appearance
  • Performance optimizations for 120Hz and low frame rates

Weaknesses

  • Can impact performance if many particles are emitted
  • No built‑in platform‑specific features like permissions

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
1
```dart
final controller = ConfettiController(duration: const Duration(seconds: 1));

@override
void initState() {
  super.initState();
  controller..addListener(() => setState(() {}))..play();
}

@override
void dispose() {
  controller.dispose();
  super.dispose();
}

@override
Widget build(BuildContext context) {
  return ConfettiWidget(
    confettiController: controller,
    blastDirectionality: BlastDirectionality.explosive,
    shouldLoop: false,
  );
}
```

Alternatives

Packages that do the same job and could replace confetti.

Works with

Packages commonly used together with confetti: ones it builds on, ones built on it, and its own family.