confetti 0.4.0
confetti: ^0.4.0 copied to clipboard
Blast colorful confetti all over the screen. Celebrate in app achievements with style. Control the velocity, angle, gravity and amount of confetti.
0.4.0 #
This update will result in a change in the default falling speed (gravity) and drag of the confetti. You may note a difference, and might be required to modify some of these paramaters to achieve the desired result
- Added an optional
gravityto change the speed at which the confetti falls - Added an optional
blastDirectionalityproperty. The default isBlastDirectionality.directionalwhere you can specify ablastDirectionto shoot the confetti in a specific direction. Change toBlastDirectionality.explosiveto blast confetti in random directions - Added an optional
particleDragproperty to configure the drag to apply to the confetti
0.3.0 #
- Provide an optional
minimumSizeandmaximumSizeto customize the size of the confetti. For example, setting aminimumSizeequal toSize(10,10)and amaximumSizeequal toSize(20,20)will create confetti with a size between these two parameters. Can be provided as an argument in theConfettiWidget
0.2.0 #
- Provide an optional Color List to specify specific colors for the confetti. A single color, for example
[Colors.blue], or multiple colors[Colors.blue, Colors.red, Colors.green]can be provided as an argument in theConfettiWidget
0.1.2 #
- Provide optional child widget to render below the confetti
- Changed the painter to use foregroundPainter to always paint the confetti above its child
0.1.1 #
- Patch null pointer exception
0.1.0 #
- Initial release. You will probably experience some performance issues if you try and create too many particles at once
- Performance optimization work will be done in later versions.