Confetti Animation in Flutter

Vijay R
vijaycreations
Published in
1 min readAug 19, 2020

Dependencies

confetti: ^0.5.4+1

Implementation

  • Create a ConfettiController and initialize it in the initState(){}
  • Create a Confetti Widget inside the widget tree.

The parameters for this ConfettiWidget can be configured based on individual’s choice.

  • Call the play() method whenever you want the animation to get triggered. In our case we shall be writing it inside the onpressed(){} method of a Flatbutton.

🥳 That’s it., Run your app to see the confetti animation in action 🚀

👩‍💻Get the Complete Source Code 👉: https://github.com/vijayinyoutube/confetti

--

--

Vijay R
vijaycreations

Hai👋 I’m a flutter developer experienced in designing and developing stunning mobile apps. Reach out for freelance projects: calico.takeoff_01@icloud.com