Sticky Text Box
fun StickyTextBox(modifier: Modifier = Modifier, property: TextBoxProperty, textItem: StickyTextItem, onStickyMoved: (Offset) -> Unit, onTextChange: (String) -> Unit, onZoomChanged: (String, Float, Offset) -> Unit, onDeleteSticky: (StickyTextItem) -> Unit, onFocusChange: (String, Boolean) -> Unit)
Composable function that displays a sticky text box with editable text. It allows for dragging, zooming, and text editing with state updates. The sticky text box's properties such as background color, text style, padding, and border styling are customizable.
Parameters
modifier
The modifier to be applied to the sticky text box.
property
The properties of the sticky text box, 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 text box.
on Text Change
Lambda to handle changes in the text inside the sticky text box.
on Zoom Changed
Lambda to handle zoom changes on the sticky text box.
on Delete Sticky
Lambda to handle the deletion of the sticky text box.
on Focus Change
Lambda to handle focus changes on the sticky text box.