@@ -67,11 +67,11 @@ import androidx.paging.compose.itemKey
67
67
import coil.compose.AsyncImage
68
68
import coil.compose.rememberAsyncImagePainter
69
69
import com.example.compose.snippets.util.randomSampleImageUrl
70
- import kotlin.random.Random
71
70
import kotlinx.coroutines.flow.distinctUntilChanged
72
71
import kotlinx.coroutines.flow.filter
73
72
import kotlinx.coroutines.flow.map
74
73
import kotlinx.coroutines.launch
74
+ import kotlin.random.Random
75
75
76
76
private object ListsSnippetsColumn {
77
77
// [START android_compose_layouts_list_column]
@@ -644,7 +644,9 @@ fun LazyStaggeredGridSnippet() {
644
644
model = photo,
645
645
contentScale = ContentScale .Crop ,
646
646
contentDescription = null ,
647
- modifier = Modifier .fillMaxWidth().wrapContentHeight()
647
+ modifier = Modifier
648
+ .fillMaxWidth()
649
+ .wrapContentHeight()
648
650
)
649
651
}
650
652
},
@@ -666,7 +668,9 @@ fun LazyStaggeredGridSnippetFixed() {
666
668
model = photo,
667
669
contentScale = ContentScale .Crop ,
668
670
contentDescription = null ,
669
- modifier = Modifier .fillMaxWidth().wrapContentHeight()
671
+ modifier = Modifier
672
+ .fillMaxWidth()
673
+ .wrapContentHeight()
670
674
)
671
675
}
672
676
},
@@ -741,4 +745,4 @@ private val randomSizedPhotos = listOf(
741
745
randomSampleImageUrl(width = 300 , height = 400 ),
742
746
randomSampleImageUrl(width = 1600 , height = 900 ),
743
747
randomSampleImageUrl(width = 500 , height = 500 ),
744
- )
748
+ )
0 commit comments