StickyPostIt

fun StickyPostIt(modifier: Modifier = Modifier, property: PostItProperty, textItem: StickyTextItem, onStickyMoved: (Offset) -> Unit, onTextChange: (String) -> Unit, onDeleteSticky: (StickyTextItem) -> Unit, onFocusChange: (String, Boolean) -> Unit, onZoomChanged: (String, Float, Offset) -> Unit)

Composable function that displays a sticky note (Post-It) with editable text. It allows for dragging, zooming, and text editing with state updates. The sticky note's properties like background color, text style, size, and padding are customizable.

Parameters

modifier

The modifier to be applied to the sticky note.

property

The properties of the sticky note, including its size, background color, text style, etc.

textItem

The sticky text item that contains the text and other properties.

onStickyMoved

Lambda to handle the movement of the sticky note.

onTextChange

Lambda to handle changes in the text inside the sticky note.

onDeleteSticky

Lambda to handle the deletion of the sticky note.

onFocusChange

Lambda to handle focus changes on the sticky note.

onZoomChanged

Lambda to handle zoom changes on the sticky note.