I was trying to achieve something like this
Where A is an Image and B is also an Image.
Currently, this is the best that I can do
Card(
modifier = Modifier
.fillMaxWidth()
.constrainAs(image) {
top.linkTo(parent.top)
start.linkTo(parent.start)
end.linkTo(parent.end)
width = Dimension.fillToConstraints}.fillMaxSize(0.3f)) {
Row {
AsyncImage(model = url1,
contentDescription = "Product Image",
modifier = Modifier.weight(1f),
contentScale = ContentScale.Crop
)
AsyncImage(model = url2,
contentDescription = "Product Image",
modifier = Modifier.weight(1f),
contentScale = ContentScale.Crop
)
}
}
}
}
It will split these 2 images vertically, but not diagonally like below picture.

Any help would be appreciated.
Thank you

