Skip to content

Fix Snackbar position when keyboard is visible #1865

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

henni99
Copy link

@henni99 henni99 commented Apr 14, 2025

Fix #1864

  • Calculates the precise bottom padding required above the IME by using onGloballyPositioned to determine the component’s position relative to the root layout height.

  • Incorporates WindowInsets.navigationBars to exclude the navigation bar height, ensuring that only the actual IME area is considered for padding.

  • Combines Modifier.imePadding() with Modifier.consumeWindowInsets(), but supplies only the necessary padding to prevent unintended layout jumps.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: Snackbar appears in the wrong position when the keyboard is visible
1 participant