Accompanist question - is there a way to apply ime...
# compose
n
Accompanist question - is there a way to apply ime padding without navigation bar padding? It's common for us to pass a
navigationBarsPadding()
modifier to different composables, but then one of them needs to also have the ime padding. And as docs say, calling
navigationBarsPadding().imePadding()
is not equal to
navigationBarsWithImePadding()
. Basically asking for an
imePadding
which is additive WRT
navigationBarsPadding
. Any hints on how to compute it?
c
Have a look at
derivedWindowInsetsTypeOf()
works. You can create your computed insets, and then use
rememberInsetsPaddingValues()
to apply it as padding.
n
I see, thanks! Looks like it's going to be a lot of code