https://kotlinlang.org logo
#compose
Title
# compose
t

Timo Drick

12/04/2020, 12:05 AM
Does anyone know what is the state of compose support for system windowinsets? Which tell you the padding needed for navigation/status bar. Just bring my app to the current alpha08 and thought maybe i can get rid of my custom solution.
a

Alexjlockwood

12/04/2020, 12:07 AM
there’s a feature request for adding window insets APIs to compose, but for now chris banes accompanist library is your best bet
t

Timo Drick

12/04/2020, 12:09 AM
thx for fast response 🙂
a

allan.conda

12/04/2020, 4:17 AM
only works on API 30+ though
a

Alexjlockwood

12/04/2020, 4:18 AM
it should work on pre-api-30 devices
a

allan.conda

12/04/2020, 4:18 AM
Ah, I misread, just the
WindowInsetsAnimations
is for 30+ devices
👍 1
2 Views