@momo-kits/native-kits 0.89.30-beta.4 → 0.89.30-beta.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -16,6 +16,8 @@ import androidx.compose.ui.semantics.contentDescription
|
|
|
16
16
|
import androidx.compose.ui.semantics.semantics
|
|
17
17
|
import androidx.compose.ui.semantics.testTag
|
|
18
18
|
import coil3.compose.AsyncImage
|
|
19
|
+
import coil3.compose.LocalPlatformContext
|
|
20
|
+
import coil3.request.ImageRequest
|
|
19
21
|
import vn.momo.kits.const.AppTheme
|
|
20
22
|
|
|
21
23
|
data class Options(
|
|
@@ -52,7 +54,9 @@ fun Image(
|
|
|
52
54
|
Box(modifier = modifier) {
|
|
53
55
|
AsyncImage(
|
|
54
56
|
modifier = modifier,
|
|
55
|
-
model =
|
|
57
|
+
model = ImageRequest.Builder(LocalPlatformContext.current)
|
|
58
|
+
.data(source)
|
|
59
|
+
.build(),
|
|
56
60
|
contentDescription = null,
|
|
57
61
|
contentScale = imageOptions.contentScale,
|
|
58
62
|
alignment = imageOptions.alignment,
|