yschimke
08/27/2025, 8:12 AMprivate suspend fun circleCompose(): ImageBitmap? =
renderer.renderComposableToBitmap(DpSize(100.dp, 100.dp)) {
Box(modifier = Modifier.fillMaxSize(), contentAlignment = Alignment.Center) {
Canvas(modifier = Modifier.fillMaxSize()) {
drawCircle(Color.DarkGray)
}
FilledIconButton(onClick = {}) {
Text("\uD83D\uDC6A")
}
}
}
...
addIdToImageMapping("circleCompose", circleComposeBitmap.toImageResource())
Mohammad Saboorian
08/28/2025, 8:24 AM