Sticky Post It
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.
text Item
The sticky text item that contains the text and other properties.
on Sticky Moved
Lambda to handle the movement of the sticky note.
on Text Change
Lambda to handle changes in the text inside the sticky note.
on Delete Sticky
Lambda to handle the deletion of the sticky note.
on Focus Change
Lambda to handle focus changes on the sticky note.
on Zoom Changed
Lambda to handle zoom changes on the sticky note.