I'm trying to integrate a confetti animation that triggers when a user submits their ticket information. I've been struggling with getting the confetti animation to work properly and I'm feeling a bit lost.
Here are the key points:
Objective: I want to display a confetti animation every time a user clicks the submit button on the Enter Ticket page of my app.
Current Status: I've tried implementing the confetti animation using the
confetti
package from pub.dev, but I'm encountering issues with the code and it's not working as expected.Specific Questions:
How can I correctly integrate the confetti animation into my app?
What are the necessary steps to ensure that the confetti animation triggers only when the user clicks the submit button?
Are there any best practices or common pitfalls I should be aware of when working with confetti animations in Flutter?
I would greatly appreciate any guidance or advice you can offer. Thank you in advance for your help!