androidx.compose.foundation.layout
absoluteOffset
Function · from org.jetbrains.compose.foundation:foundation-layout:1.12.2
No hand-written docs yet.
Offset the content by (x dp, y dp). The offsets can be positive as well as non-positive. Applying an offset only changes the position of the content, without interfering with its size measurement.
With x, y
fun Modifier.absoluteOffset(
x: Dp = 0.dp,
y: Dp = 0.dp,
)
x: DpOptional
x: DpOptionalDefault: 0.dp
Not described.
y: DpOptional
y: DpOptionalDefault: 0.dp
Not described.
With offset
fun Modifier.absoluteOffset(offset: Density.() -> IntOffset)
Library docs
Offset the content by (x dp, y dp). The offsets can be positive as well as non-positive.
Applying an offset only changes the position of the content, without interfering with its size
measurement.
This modifier will not consider layout direction when calculating the position of the content: a
positive x offset will always move the content to the right. For a modifier that considers the
layout direction when applying the offset, see offset.
Example usage: