Confetti Animation in Flutter
Published in
1 min readAug 19, 2020
Dependencies
confetti: ^0.5.4+1
Implementation
- Create a
ConfettiController
and initialize it in theinitState(){}
- 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 theonpressed(){}
method of aFlatbutton
.