ContainerDecoration
Background, border, padding, and corner-radius decoration shared by every container (ColumnNode, RowNode, BoxNode).
Drawing order at render time is:
Fill the rectangle with background (if non-null).
Place children inside the rectangle inset by padding.
Stroke the outer rectangle with border (if non-null).
When cornerRadius is non-zero the rectangle becomes rounded — both the fill and the border outline follow the curve, and the children are clipped to the rounded shape so they don't poke past the corners.
Constructors
Properties
Optional gradient or paint fill. When non-null takes precedence over background. Gradient coordinates are in the container's local coordinate space — (0, 0) is the top-left corner, the container's (width, height) is the bottom-right.
Per-side override. When non-null takes precedence over border. Each side is independent — leave any null to skip it.
When true, the renderer clips drawing to the container's rectangle. Useful for fixed-size containers (e.g. box(width = 200.dp, height = 80.dp)) where overflowing children should not paint past the edges. Containers with a non-zero corner radius already clip to their rounded shape regardless of this flag.
Per-corner override. When non-null takes precedence over cornerRadius. Use com.conamobile.pdfkmp.style.CornerRadius.Companion.top etc. for common shapes.
Optional soft shadow drawn behind the container before its fill. See com.conamobile.pdfkmp.style.DropShadow.