Hello guys, I am new to compose multiplatform and ...
# multiplatform
j
Hello guys, I am new to compose multiplatform and I want to make a particular screen
full screen
. How do I achieve this?
v
You would need to first tell the windowing system you wish to extend beneath the system bars like this:
WindowCompat.setDecorFitsSystemWindows(_window_, false)
Now all screens will be "full screen" by default. You can now use
Modifier.systemBarsPadding()
accordingly to manage the
SystemBarInsets
.
j
iosMain does not have WindowCompat object
v
For
iOS
you will need to do the equivalent (
ignoreSafeArea
or whatever they have). Your question was about compose so the steps are the following: 1. Make sure the nativeContainer in which you want to display compose is full screen itself 2. Make sure that
systemBarsPadding()
are not applied before you want to (before a background for example)
j
It's
Compose Multiplatform