← Back to Foundation Layout
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.
fun Modifier.absoluteOffsetPx( x: State<Float> = mutableStateOf(0f), y: State<Float> = mutableStateOf(0f) )