diff --git a/tutorials/Image_And_Icons_Manipulations/README.md b/tutorials/Image_And_Icons_Manipulations/README.md index 70c64eb15e..1eadb31f01 100755 --- a/tutorials/Image_And_Icons_Manipulations/README.md +++ b/tutorials/Image_And_Icons_Manipulations/README.md @@ -68,7 +68,7 @@ fun main() = singleWindowApplication { Column { AsyncImage( load = { loadImageBitmap(File("sample.png")) }, - painterFor = { remember { BitmapPainter(it) } }, + painterFor = { remember(it) { BitmapPainter(it) } }, contentDescription = "Sample", modifier = Modifier.width(200.dp) ) @@ -97,7 +97,7 @@ fun AsyncImage( modifier: Modifier = Modifier, contentScale: ContentScale = ContentScale.Fit, ) { - val image: T? by produceState(null) { + val image: T? by produceState(null, load) { value = withContext(Dispatchers.IO) { try { load()