nowinandroid
nowinandroid copied to clipboard
Fix Snackbar position when keyboard is visible
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.navigationBarsto exclude the navigation bar height, ensuring that only the actual IME area is considered for padding. -
Combines
Modifier.imePadding()withModifier.consumeWindowInsets(), but supplies only the necessary padding to prevent unintended layout jumps.