Add animateItemPlacement to songs

This commit is contained in:
vfsfitvnm 2022-07-19 12:27:17 +02:00
parent 3011abf38d
commit 437d5aff09

View file

@ -179,7 +179,7 @@ fun HomeScreen() {
.background(colorPalette.background)
.fillMaxSize()
) {
item {
item("topAppBar") {
TopAppBar(
modifier = Modifier
.height(52.dp)
@ -230,7 +230,7 @@ fun HomeScreen() {
}
}
item {
item("playlistsHeader") {
Row(
verticalAlignment = Alignment.CenterVertically,
modifier = Modifier
@ -342,7 +342,7 @@ fun HomeScreen() {
}
}
item {
item("playlists") {
LazyHorizontalGrid(
state = lazyHorizontalGridState,
rows = GridCells.Fixed(if (playlistGridExpanded) 3 else 1),
@ -556,7 +556,9 @@ fun HomeScreen() {
.padding(horizontal = 8.dp, vertical = 4.dp)
)
}
}
},
modifier = Modifier
.animateItemPlacement()
)
}
}