Sticky

fun Sticky(modifier: Modifier = Modifier, attachable: Attachable, stickySize: DpSize, onStickyMoved: (Offset) -> Unit, onZoomChanged: (Float, Offset) -> Unit, content: @Composable () -> Unit = {})

A Composable that displays a sticky item which can be moved and zoomed using gestures. This composable supports both dragging (panning) and pinch-to-zoom gestures.

Parameters

modifier

Modifier to be applied to the sticky item.

attachable

The attachable object (e.g., sticky item) to be displayed.

stickySize

The size of the sticky item (used for positioning and layout).

onStickyMoved

A callback that is triggered when the sticky item is moved.

onZoomChanged

A callback that is triggered when the zoom level or zoom offset is changed.

content

A composable that is displayed inside the sticky item.