Kwik Image Loader
fun KwikImageLoader(modifier: Modifier = Modifier, url: Any, shape: Shape? = null, @DrawableRes placeholder: Int = R.drawable.ic_placeholder, contentDescription: String? = null, contentScale: ContentScale = ContentScale.Crop, loading: () -> Unit = {}, success: () -> Unit = {}, error: () -> Unit = {}, colorFilter: ColorFilter? = null, onClick: () -> Unit = {})
An image loader that uses Coil to load images.
Parameters
modifier
The modifier to apply to the image.
url
The URL of the image to load.
placeholder
The placeholder to show while the image is loading.
content Description
The content description of the image.
content Scale
The scale of the image.
loading
The action to perform when the image is loading.
success
The action to perform when the image has loaded successfully.
error
The action to perform when the image has failed to load.
color Filter
The color filter to apply to the image.
on Click
The action to perform when the image is clicked.