aligned
Anchors the children added inside block at alignment within the surrounding box. Multiple children inside the block stack vertically (the block has a ColumnScope receiver), so put a single logical block of content per call.
Example:
box(width = 300.dp, height = 200.dp) {
image(bytes = heroBytes, contentScale = ContentScale.Crop)
aligned(BoxAlignment.BottomEnd) {
text("Page 1") { color = PdfColor.White }
}
}Content copied to clipboard