mirror of
https://github.com/msfjarvis/compose-lobsters
synced 2025-08-14 15:17:05 +05:30
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:
parent
65a6242b68
commit
af2264532d
3 changed files with 14 additions and 12 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue