payam-zahedi / toastification

Toastification is a Flutter package for displaying customizable toast messages. It provides predefined widgets for success, error, warning, and info messages, as well as a custom widget for flexibility. With Toastification, you can add and manage multiple toast messages at the same time with ease.
https://payamzahedi.com/toastification/
BSD 3-Clause "New" or "Revised" License
545 stars 39 forks source link

Can't interact with area below toast #127

Closed mark1saeid closed 16 minutes ago

mark1saeid commented 3 weeks ago

Describe the bug When showing notification there is a large space of padding (i think) that stop user from interacting on Android and iOS

To Reproduce Steps to reproduce the behavior:

Create a bottom navigation Create a toastification with alignment of bottomCenter Try to click any of the navigation items Expected behavior User can still interact with the UI beneath notifcation

Screenshots https://github.com/payam-zahedi/toastification/assets/61675970/7f67c55b-bd9c-4727-8943-73965d6ae7c4

Flutter information:

OS: [iOS, android] Flutter Version: [3.22.1] Toastification Version [2.0.0]

payam-zahedi commented 3 weeks ago

Hey @mark1saeid

Thanks for openning this issue

I fixed it in #128 this PR.

You can try it in the new version and let me know if you still have this problem

mark1saeid commented 3 weeks ago

It still same issue when i make the toast on bottom center when i press on the area on the bottom of the toast it not clickable or any action occurred @payam-zahedi

payam-zahedi commented 3 weeks ago

Could you please send some video

mark1saeid commented 3 weeks ago

https://jmp.sh/s/tnTkDidRBj3k3FYWQc0w

@payam-zahedi

mark1saeid commented 3 weeks ago

Thank you for your support

payam-zahedi commented 3 weeks ago

Alright @mark1saeid

I will try to reproduce this

ilyasarafathemvigo commented 3 weeks ago

Same issue

mark1saeid commented 1 week ago

any update

mark1saeid commented 1 week ago

@payam-zahedi please tell me if you have fixed this bug

payam-zahedi commented 1 week ago

@mark1saeid

Not yet,

Perhaps in this weekend, I will work on it. There are some edge cases here that we need to test them

For example: if the user shows a toast and open the keyboard, we need to move the toast to the above of the keyboard

payam-zahedi commented 5 minutes ago

@mark1saeid @ilyasarafathemvigo

I've addressed the issue in PR #135

In the attached video, I demonstrate how the Toastification overlay behaves after the applied changes.

To clarify, the gray area behind the toasts remains untouchable, as it represents the placeholder for the toasts. However, the rest of the screen is fully interactive. I've also made adjustments to reduce the margin and padding around the toasts, providing more usable space for interaction.

Please let me know if any further adjustments are needed.

https://github.com/user-attachments/assets/875059e7-a7fe-4d40-9451-02b9361e2b7a