Kashismails
05/13/2024, 11:26 AMKonstantin Tskhovrebov
05/13/2024, 11:36 AMKashismails
05/13/2024, 11:37 AMKonstantin Tskhovrebov
05/13/2024, 11:38 AMKashismails
05/13/2024, 11:39 AMAlex Styl
05/20/2024, 8:52 AMcoil3.compose.AsyncImage(
modifier = modifier,
model =url,
contentDescription = contentDescription,
contentScale = contentScale,
colorFilter = if (applyTint) ColorFilter.tint(color = tint) else null,
onError = {
loadingProgress(ImageState.Failure)
},
onLoading = {
loadingProgress(ImageState.Loading)
},
onSuccess = {
loadingProgress(ImageState.Success)
},
)
is missing the imageLoader
parameter. using 3.0.0-alpha06
same as your article. what am i missing?Kashismails
05/20/2024, 8:55 AMsetSingletonImageLoaderFactory { context ->
getAsyncImageLoader(context)
}
Alex Styl
05/20/2024, 8:57 AMAlex Styl
05/20/2024, 8:59 AMKashismails
05/20/2024, 9:00 AMImageLoader.Builder(context).crossfade(true).logger(DebugLogger()).build()
you have to pass imageloaderAlex Styl
05/20/2024, 9:03 AMio.coil-kt.coil3:coil-compose
dependency. The AsyncImage
is available on io.coil-kt.coil3:coil
which requires the ImageLoader
in its parameters. The coil-compose one has overloads with default values and that's why the code wouldn't compile.Alex Styl
05/20/2024, 9:03 AM