Skip to content
This repository has been archived by the owner on Mar 18, 2024. It is now read-only.

Commit

Permalink
Improve exercises screen
Browse files Browse the repository at this point in the history
  • Loading branch information
AnkitSuda committed Nov 22, 2022
1 parent 72937b3 commit a89a9e2
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ fun ExercisesScreen(
}
}

@OptIn(ExperimentalFoundationApi::class)
@Composable
private fun ExercisesScreenContent(
navController: NavController,
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit a89a9e2

Please sign in to comment.