Function

absoluteOffset

Offset the content by (x dp, y dp, z dp) without considering layout direction.

RevenueCat

RevenueCat

Add subscriptions to your apps in minutes

Ad Get started for free

absoluteOffset

Android
public fun SubspaceModifier.absoluteOffset(
    x: Dp = 0.dp,
    y: Dp = 0.dp,
    z: Dp = 0.dp,
): SubspaceModifier

Offset the content by (x dp, y dp, z dp) without considering layout direction. The offsets can be positive as well as non-positive.

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.