vijaycreations
Published in

vijaycreations

Confetti Animation in Flutter

Dependencies

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

--

--

A list of Flutter Tutorials and app templates

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Vijay R

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