Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Raising the top of toast with the keyboard open #124

Closed
StarProxima opened this issue Aug 12, 2024 · 4 comments · Fixed by #131
Closed

Raising the top of toast with the keyboard open #124

StarProxima opened this issue Aug 12, 2024 · 4 comments · Fixed by #131
Labels
bug Something isn't working

Comments

@StarProxima
Copy link

@payam-zahedi Thanks for a great package, the quality level is really very high, I am in the process of switching from my own solution to this package.

Describe the bug

Currently, toasts do not react to an open keyboard, so the user can skip them when acting while the keyboard is still open.

Video demonstrating the problem:

5319104043027552526.mp4

Expected behavior
Toasts go up over the keyboard when it is open and down when it is closed.
Perhaps we could add an additional parameter to regulate this behavior.

Flutter information:

  • OS: android
  • Flutter Version: 3.24.0
  • Toastification Version 2.1.0
@StarProxima StarProxima added the bug Something isn't working label Aug 12, 2024
@payam-zahedi
Copy link
Owner

Hey @StarProxima

Thanks for opening the issue

Yes, I didn't think about this and this must be solved ASAP.

@payam-zahedi
Copy link
Owner

If you are looking for a quick solution for now, I would suggest changing the alignment of your toasts

You can show them from top.

@LucasXu0
Copy link

Here's my workaround:

Add MediaQuery.of(context).viewInsets.bottom as the toast padding.

Screenshot 2024-08-22 at 16 43 47

@ghrlt
Copy link

ghrlt commented Aug 27, 2024

Here's my workaround:

Add MediaQuery.of(context).viewInsets.bottom as the toast padding.

Is there a workaround if we have no context available?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants