NetworkImage

fun NetworkImage(image: Any, modifier: Modifier = Modifier, isCrossfade: Boolean = true, isAllowHardware: Boolean = true, alpha: Float = DefaultAlpha, @DrawableRes loading: Int = R.drawable.ic_deco_jeluchu, @DrawableRes error: Int = R.drawable.ic_deco_jeluchu, transformations: List<Transformation> = emptyList(), size: Size? = null, requestBuilder: ImageRequest.Builder.() -> Unit = {}, onLoading: () -> Unit? = null, onSuccess: () -> Unit? = null, onError: (Throwable?) -> Unit? = null, contentScale: ContentScale = ContentScale.Crop, contentDescription: String? = null)

Author: @Jeluchu

This component is used to upload images via network

Parameters

image

link/resource to image requiring (based on Coil)

modifier

custom modifier for the displayed icon (currently there is a default padding)

contentScale

type of scale for the image


fun NetworkImage(url: Any, modifier: Modifier = Modifier, isCrossfade: Boolean = true, isAllowHardware: Boolean = true, alpha: Float = DefaultAlpha, transformations: List<Transformation> = emptyList(), size: Size? = null, requestBuilder: ImageRequest.Builder.() -> Unit = {}, onLoading: () -> Unit? = null, onSuccess: () -> Unit? = null, onError: (Throwable?) -> Unit? = null, contentScale: ContentScale = ContentScale.Crop, contentDescription: String? = null)

Author: @Jeluchu

This component is used to upload images via network

Parameters

url

link/resource to image requiring (based on Coil)

modifier

custom modifier for the displayed icon (currently there is a default padding)

contentScale

type of scale for the image