gaurishankar007 / flutter_sliding_toast

MIT License
1 stars 0 forks source link

handle toast onTap #1

Closed KazantsevLev closed 3 months ago

KazantsevLev commented 3 months ago

There is a problem with handling clicks on toast. I display a toast when receiving an event, and I want to perform some actions when clicking on this toast

I suggest the following solution: Add VoidCallback onTap in .show() and add onTap: onTap in GestureDetector

gaurishankar007 commented 3 months ago

Thank you for your feedback. I will look into it and get back to you soon.

On Wed, 26 Jun 2024 at 6:45 PM Lev @.***> wrote:

There is a problem with handling clicks on toast. I display a toast when receiving an event, and I want to perform some actions when clicking on this toast

I suggest the following solution: Add VoidCallback in .show()

— Reply to this email directly, view it on GitHub https://github.com/gaurishankar007/flutter_sliding_toast/issues/1, or unsubscribe https://github.com/notifications/unsubscribe-auth/ANXQP6Y3BM72Q3SGPR5DR3TZJK3QHAVCNFSM6AAAAABJ53FQDCVHI2DSMVQWIX3LMV43ASLTON2WKOZSGM3TKMRYGA4DOOI . You are receiving this because you are subscribed to this thread.Message ID: @.***>

gaurishankar007 commented 3 months ago

The onTap callback is added in the new version.