Site icon Flutter Packages | Pub dev Packages – Flutter Mobile App World

Flutter widget to shoots confetti all over the screen

Blast some confetti all over the screen and celebrate user achievements!

Demo

WEB Demo

A video walkthrough is available here.

Getting Started

To use this plugin, add confetti as a dependency in your pubspec.yaml file.

See the example to get started quickly.

To begin you need to instantiate a ConfettiController variable and pass in a Duration argument. The ConfettiController can be instantiated in the initState method and disposed in the dispose method.

In the build method return a ConfettiWidget. The only attribute that is required is the ConfettiController.

Other attributes that can be set are:

Enjoy the confetti.

NOTE: Don’t be greedy with the number of particles. The more particles that are on screen the more calculations need to be performed. Performance improvements have been made, however this is still ongoing work. Too many particles will result in performance issues. Use wisely and carefully.

Download Flutter widget to shoots confetti source code on GitHub

https://github.com/funwithflutter/flutter_confetti

Exit mobile version