Is there a way to override or specify my own insets?
ie change the
imePadding()
to be a specific dp? I am building a mobile preview on the desktop target so that i dont have to start the android emulator
👀 1
Alex Styl
06/09/2025, 9:38 AM
I >think< insets are done using
ModifierLocalConsumedWindowInsets
which is internal so probably not
a
Alex Vanyo
06/09/2025, 3:08 PM
There's
DeviceConfigurationOverride.WindowInsets
in Android-land, which uses the View-layer inset APIs to inject arbitrary insets. That wouldn't work for non-Android-land though
a
Alex Styl
06/09/2025, 5:42 PM
TIL. but yeah you are right. there is no such thing in CMP right now. Ended up just using the emulator for now. Will hack something when I really need it