WindowInsetsSchema
Specifies which system window insets should be applied as padding to a tile.
Applied first in styledWith() via Modifier.windowInsetsPadding(...), so that subsequent margin and size constraints operate within the safe area.
Use SystemBars for the most common case (root screen containers that should avoid both status bar and navigation bar). For screens with a keyboard input, add Ime to handle soft keyboard insets.
Variants → Compose mapping:
SystemBars →
WindowInsets.systemBarsStatusBar →
WindowInsets.statusBarsNavigationBar →
WindowInsets.navigationBarsIme →
WindowInsets.imeCaptionBar →
WindowInsets.captionBarDisplayCutout →
WindowInsets.displayCutoutWaterfall →
WindowInsets.waterfall
DSL helpers (mosaic-server):
windowInsets(windowInsetsSystemBars())
windowInsets(windowInsetsStatusBar())
windowInsets(windowInsetsNavigationBar())
windowInsets(windowInsetsIme())
windowInsets(windowInsetsCaptionBar())
windowInsets(windowInsetsDisplayCutout())
windowInsets(windowInsetsWaterfall())Note: Only one inset type can be applied per StyleSchema. To combine multiple insets (e.g. status bar + IME), use SystemBars which covers both vertical system bars.