Hi everyone I'm having trouble displaying network ...
# compose
t
Hi everyone I'm having trouble displaying network images in my app. This is my implementation:
Copy code
@Composable
fun EventImage(event: Event) {
    Box(
        modifier = Modifier
            .size(width = 88.dp, height = 84.dp)
            .clip(RoundedCornerShape(10.dp))
    ) {
        /*Image(
            painter = rememberAsyncImagePainter(event.banner),
            contentDescription = event.eventID,
            contentScale = ContentScale.Crop,
            modifier = Modifier.fillMaxSize()
        )*/
        AsyncImage(
            model = event.banner,
            placeholder = painterResource(Res.drawable.placeholder),
            contentDescription = event.eventID,
            contentScale = ContentScale.Crop,
            modifier = Modifier.fillMaxSize()
        )
    }
}
c
and what is the issue? 😅
t
Oh sorry The image does not display. When I copy the linps returns from the endpoint to a browser it shows up, but it doesn’t load in my app
c
you are posting this in the multiplatform compose channel so you are using the the multiplatform coil version 3, right?
t
Yes I am
👍 1
c
t
Okay Let me try that now