@@ -67,11 +67,11 @@ import androidx.paging.compose.itemKey
6767import coil.compose.AsyncImage
6868import coil.compose.rememberAsyncImagePainter
6969import com.example.compose.snippets.util.randomSampleImageUrl
70- import kotlin.random.Random
7170import kotlinx.coroutines.flow.distinctUntilChanged
7271import kotlinx.coroutines.flow.filter
7372import kotlinx.coroutines.flow.map
7473import kotlinx.coroutines.launch
74+ import kotlin.random.Random
7575
7676private object ListsSnippetsColumn {
7777 // [START android_compose_layouts_list_column]
@@ -644,7 +644,9 @@ fun LazyStaggeredGridSnippet() {
644644 model = photo,
645645 contentScale = ContentScale .Crop ,
646646 contentDescription = null ,
647- modifier = Modifier .fillMaxWidth().wrapContentHeight()
647+ modifier = Modifier
648+ .fillMaxWidth()
649+ .wrapContentHeight()
648650 )
649651 }
650652 },
@@ -666,7 +668,9 @@ fun LazyStaggeredGridSnippetFixed() {
666668 model = photo,
667669 contentScale = ContentScale .Crop ,
668670 contentDescription = null ,
669- modifier = Modifier .fillMaxWidth().wrapContentHeight()
671+ modifier = Modifier
672+ .fillMaxWidth()
673+ .wrapContentHeight()
670674 )
671675 }
672676 },
@@ -741,4 +745,4 @@ private val randomSizedPhotos = listOf(
741745 randomSampleImageUrl(width = 300 , height = 400 ),
742746 randomSampleImageUrl(width = 1600 , height = 900 ),
743747 randomSampleImageUrl(width = 500 , height = 500 ),
744- )
748+ )
0 commit comments