Skip to content

Commit 65ff1b2

Browse files
committed
1 parent fbbb764 commit 65ff1b2

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

compose/snippets/src/main/java/com/example/compose/snippets/lists/LazyListSnippets.kt

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,11 +67,11 @@ import androidx.paging.compose.itemKey
6767
import coil.compose.AsyncImage
6868
import coil.compose.rememberAsyncImagePainter
6969
import com.example.compose.snippets.util.randomSampleImageUrl
70-
import kotlin.random.Random
7170
import kotlinx.coroutines.flow.distinctUntilChanged
7271
import kotlinx.coroutines.flow.filter
7372
import kotlinx.coroutines.flow.map
7473
import kotlinx.coroutines.launch
74+
import kotlin.random.Random
7575

7676
private 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

Comments
 (0)