How can i achieve displaying the bottombar on top of the soft keyboard in android compose?

68 views Asked by At

enter image description here

Im not sure on how i can place the bottombar ontop of the keyboard when its visible

enter image description here

i want the bottombar to show at that position when the keyboard is up

presently the keyboard overlay the bottombar making it difficult to access the bottombar stylings

1

There are 1 answers

2
Miroslav Hýbler On

Use Modifier.imePadding() on your bottomBar, this will always keep the bottomBar above the keyboard when it's visible.

BottomAppBar(modifier = Modifier.imePadding()) {}