Is there a way to override or specify my own inset...
# compose
a
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
I >think< insets are done using
ModifierLocalConsumedWindowInsets
which is internal so probably not
a
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
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