From 0b996d7d2cff27b73ffea11f501fbebf711ee748 Mon Sep 17 00:00:00 2001 From: Sergio Belda Galbis Date: Sun, 24 Nov 2024 18:00:59 +0100 Subject: [PATCH] Replace `animateItemPlacement` by `animateItem` --- .../dev/sergiobelda/todometer/app/feature/home/ui/HomeScreen.kt | 2 +- .../todometer/app/feature/taskdetails/ui/TaskDetailsScreen.kt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app-feature/home/src/commonMain/kotlin/dev/sergiobelda/todometer/app/feature/home/ui/HomeScreen.kt b/app-feature/home/src/commonMain/kotlin/dev/sergiobelda/todometer/app/feature/home/ui/HomeScreen.kt index 9690f40c..15d295fe 100644 --- a/app-feature/home/src/commonMain/kotlin/dev/sergiobelda/todometer/app/feature/home/ui/HomeScreen.kt +++ b/app-feature/home/src/commonMain/kotlin/dev/sergiobelda/todometer/app/feature/home/ui/HomeScreen.kt @@ -517,7 +517,7 @@ fun LazyListScope.taskItems( onTaskItemClick = { onTaskItemClick(taskItem.id) }, onTaskItemLongClick = { onTaskItemLongClick(taskItem.id) }, onSwipeToDismiss = { onSwipeToDismiss(taskItem.id) }, - modifier = Modifier.animateItemPlacement(), + modifier = Modifier.animateItem(), swipeable = !selectionMode, checkEnabled = selectionMode, selected = selectedTasksIds.contains(taskItem.id) diff --git a/app-feature/taskdetails/src/commonMain/kotlin/dev/sergiobelda/todometer/app/feature/taskdetails/ui/TaskDetailsScreen.kt b/app-feature/taskdetails/src/commonMain/kotlin/dev/sergiobelda/todometer/app/feature/taskdetails/ui/TaskDetailsScreen.kt index 7021b9ab..27b7afc2 100644 --- a/app-feature/taskdetails/src/commonMain/kotlin/dev/sergiobelda/todometer/app/feature/taskdetails/ui/TaskDetailsScreen.kt +++ b/app-feature/taskdetails/src/commonMain/kotlin/dev/sergiobelda/todometer/app/feature/taskdetails/ui/TaskDetailsScreen.kt @@ -289,7 +289,7 @@ private fun LazyItemScope.TaskChecklistItem( taskChecklistItem.state == TaskChecklistItemState.UNCHECKED ) } - .animateItemPlacement() + .animateItem() .padding(horizontal = 8.dp) ) { TodometerCheckbox(