by @alexstyl
✉️ Leave your feedback

← Back to Foundation Layout

absoluteOffsetPx

Modifier
in
Foundation Layout
. Since 0.1.0-dev16

Overview

Examples

Community Notes

Offset the content by (x px, y px). The offsets can be positive as well as non-positive. This modifier is designed to be used for offsets that change, possibly due to user interactions.

The offsets are applied without regard to the current LayoutDirection. To apply relative offsets, use Modifier.offsetPx instead.

Overloads

absoluteOffsetPx

fun Modifier.absoluteOffsetPx(
    x: State<Float> = mutableStateOf(0f),
    y: State<Float> = mutableStateOf(0f)
)
Next ComponentAlignmentLineOffset