How do I determine if this dropdown is overlapping...
# compose
n
How do I determine if this dropdown is overlapping the keyboard?
👀 2
I think I can use Accompanist here.
Copy code
@Composable
fun ImeAvoidingBox() {
    val insets = LocalWindowInsets.current

    val imeBottom = with(LocalDensity.current) { insets.ime.bottom.toDp() }
    Box(Modifier.padding(bottom = imeBottom))
}
✔️ 1