The GlideImage
composable in the Landscapist
image loading library for Compose is missing the loading
, success
, and failure
parameters, but the GitHub Readme for the library states these parameters are available. Android Studio just throws a compile time error. Do I have to implement them differently with this library?
GlideImage(
imageModel = imageUrl,
modifier = modifier,
// Throws compiler error here
loading = {
Box(modifier = Modifier.matchParentSize()) {
CircularProgressIndicator(
modifier = Modifier.align(Alignment.Center)
)
}
}
)
I try replicate but works for me. I using version 1.4.9 of Glide. You can try implement success and failure too.