why this behaviour with Image, Config 1 -> ```I...
# compose
s
why this behaviour with Image, Config 1 ->
Copy code
Image(
    modifier = Modifier.height(200.dp),
    painter = rememberAsyncImagePainter(
        model = "url",
        error = painterResource(id = R.drawable.image_placeholder)
    ),
    contentDescription = null,
    contentScale = ContentScale.FillWidth
)
config 2 ->
Copy code
Image(
    modifier = Modifier.fillMaxWidth(),
    painter = rememberAsyncImagePainter(
        model = "url",
        error = painterResource(id = R.drawable.image_placeholder)
    ),
    contentDescription = null,
    contentScale = ContentScale.FillWidth
)
With config2, image is not shown. whrereAs works fine with Config1
t
What happens when you make it fillMaxHeight()?
s
same image is not visible @Travis Griggs. Only working when fixing the height.