Skip to content

Commit

Permalink
feat(ux): animate list items enter/exit
Browse files Browse the repository at this point in the history
  • Loading branch information
rhenwinch committed Sep 26, 2024
1 parent 3ab85b5 commit 13f3ad0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ internal fun ProviderTestScreen(
testResult = data,
onToggle = { viewModel.toggleCard(id = data.provider.id) },
showFullLog = { testCaseOutputToShow = data.provider to it },
modifier = Modifier.animateItemPlacement()
modifier = Modifier.animateItem()
)
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ import com.flixclusive.feature.mobile.repository.component.RepositoryTopBar
import com.flixclusive.model.provider.ProviderData
import com.ramcosta.composedestinations.annotation.Destination
import kotlinx.coroutines.launch
import com.flixclusive.core.ui.common.R as UiCommonR
import com.flixclusive.core.locale.R as LocaleR
import com.flixclusive.core.ui.common.R as UiCommonR


@OptIn(ExperimentalFoundationApi::class)
Expand Down Expand Up @@ -231,7 +231,7 @@ internal fun RepositoryScreen(
},
modifier = Modifier
.padding(vertical = 5.dp)
.animateItemPlacement()
.animateItem()
)
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ internal fun SearchSearchHistoryView(
key = { it.id }
) { item ->
SearchHistoryBlock(
modifier = Modifier.animateItemPlacement(),
modifier = Modifier.animateItem(),
item = item,
onClick = {
viewModel.onQueryChange(item.query)
Expand Down

0 comments on commit 13f3ad0

Please sign in to comment.