From a89a9e25685fdff16352e0372c2c935c31865981 Mon Sep 17 00:00:00 2001 From: Ankit Suda Date: Tue, 22 Nov 2022 18:43:49 +0530 Subject: [PATCH] Improve exercises screen --- .../com/ankitsuda/rebound/ui/exercises/ExercisesScreen.kt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/modules/ui-exercises/src/main/java/com/ankitsuda/rebound/ui/exercises/ExercisesScreen.kt b/modules/ui-exercises/src/main/java/com/ankitsuda/rebound/ui/exercises/ExercisesScreen.kt index 756b9367..46753c81 100644 --- a/modules/ui-exercises/src/main/java/com/ankitsuda/rebound/ui/exercises/ExercisesScreen.kt +++ b/modules/ui-exercises/src/main/java/com/ankitsuda/rebound/ui/exercises/ExercisesScreen.kt @@ -87,6 +87,7 @@ fun ExercisesScreen( } } +@OptIn(ExperimentalFoundationApi::class) @Composable private fun ExercisesScreenContent( navController: NavController, @@ -167,12 +168,14 @@ private fun ExercisesScreenContent( modifier = Modifier .fillMaxWidth() .background(LocalThemeState.current.backgroundColor) - .padding(horizontal = 24.dp, vertical = 8.dp), + .padding(horizontal = 24.dp, vertical = 8.dp) + .animateItemPlacement(), text = item, style = ReboundTheme.typography.caption, color = LocalThemeState.current.onBackgroundColor.copy(alpha = 0.75f) ) is ExerciseWithExtraInfo -> ExerciseItem( + modifier = Modifier.animateItemPlacement(), name = item.exercise.name.toString(), muscle = item.primaryMuscle?.name.toString(), totalLogs = item.logsCount,