79182538

Date: 2024-11-12 19:55:17
Score: 1
Natty:
Report link

We can create ColorDrawable and convert it as ImageBitmap.

Image(
        modifier = Modifier.matchParentSize(),
        bitmap = ColorDrawable(Color.Black.toArgb()).toBitmap(10, 10).asImageBitmap(),
        contentScale = ContentScale.FillBounds,
        contentDescription = null
    )
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Siva Nimmala