Package-level declarations

Types

Link copied to clipboard
data class PostItProperty(val size: DpSize, val backgroundColor: Color, val textStyle: TextStyle, val selectionBackgroundColor: Color, val elevation: Dp, val corner: Dp, val padding: Dp) : Property

Represents the properties of a Post-It sticky note, including its size, background color, text style, selection color, elevation, corner radius, and padding.

Functions

Link copied to clipboard
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.