chore(deps): update com.halilibo.compose-richtext to v0.11.0 (#293)

Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Harsh Shandilya <me@msfjarvis.dev>
This commit is contained in:
renovate[bot] 2022-02-10 09:48:01 +05:30 committed by GitHub
parent 65a6242b68
commit af2264532d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 14 additions and 12 deletions

View file

@ -3,8 +3,10 @@ package dev.msfjarvis.claw.common.ui
import androidx.compose.foundation.Image
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.compose.ui.platform.LocalContext
import coil.annotation.ExperimentalCoilApi
import coil.compose.rememberImagePainter
import coil.compose.rememberAsyncImagePainter
import coil.request.ImageRequest
import coil.transform.CircleCropTransformation
@Composable
@ -16,12 +18,12 @@ actual fun NetworkImage(
) {
Image(
painter =
rememberImagePainter(
data = url,
builder = {
transformations(CircleCropTransformation())
crossfade(true)
},
rememberAsyncImagePainter(
ImageRequest.Builder(LocalContext.current)
.data(data = url)
.transformations(CircleCropTransformation())
.crossfade(true)
.build()
),
contentDescription = contentDescription,
modifier = modifier,