androidx.compose.foundation.layout
consumeWindowInsets
Function · from org.jetbrains.compose.foundation:foundation-layout:1.12.2
No hand-written docs yet.
Consume insets that haven't been consumed yet by other insets Modifiers similar to windowInsetsPadding without adding any padding.
With insets
fun Modifier.consumeWindowInsets(insets: WindowInsets): Modifier
insets: WindowInsetsRequired
insets: WindowInsetsRequiredNot described.
With paddingValues
fun Modifier.consumeWindowInsets(paddingValues: PaddingValues): Modifier
paddingValues: PaddingValuesRequired
paddingValues: PaddingValuesRequiredNot described.
Library docs
Consume insets that haven't been consumed yet by other insets Modifiers similar to
windowInsetsPadding without adding any padding.
This can be useful when content offsets are provided by WindowInsets.asPaddingValues. This
should be used further down the hierarchy than the PaddingValues is used so that the values
aren't consumed before the padding is added.