rememberInsetsPaddingValues

@Composable()
fun rememberInsetsPaddingValues(insets: Insets, applyStart: Boolean = true, applyTop: Boolean = true, applyEnd: Boolean = true, applyBottom: Boolean = true, additionalStart: Dp = 0.dp, additionalTop: Dp = 0.dp, additionalEnd: Dp = 0.dp, additionalBottom: Dp = 0.dp): PaddingValues

Returns the provided insets insets in the form of a PaddingValues instance.

The returned instance is stable, meaning that any changes to the inset values will result in composition being notified, and these padding values being re-read.

Parameters

insets

The WindowInsets.Type to read from.

applyStart

Whether to apply the inset on the start dimension. Defaults to true.

applyTop

Whether to apply the inset on the top dimension. Defaults to true.

applyEnd

Whether to apply the inset on the end dimension. Defaults to true.

applyBottom

Whether to apply the inset on the bottom dimension. Defaults to true.

additionalStart

Value to add to the start dimension.

additionalTop

Value to add to the top dimension.

additionalEnd

Value to add to the end dimension.

additionalBottom

Value to add to the bottom dimension.