yschimke
private 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
A modern programming language that makes developers happier.