Add missing animation on the SummaryProficiency cell

This commit is contained in:
Thomas Andres Gomez 2023-12-21 15:15:00 +01:00
parent 1c6fd505a5
commit 3af7757f30

View file

@ -231,15 +231,21 @@ private fun SummaryProficiency(
size = MaterialTheme.lexicon.dimens.summary.mastery, size = MaterialTheme.lexicon.dimens.summary.mastery,
multiplier = value.multiplier, multiplier = value.multiplier,
) )
Text( AnimatedContent(
modifier = Modifier.weight(weight = 1f), modifier = Modifier.weight(weight = 1f),
text = value.label, targetState = value.label,
style = style, label = "SummaryMaxLabelAnimation",
color = color, transitionSpec = animationSpec(),
overflow = TextOverflow.Ellipsis, ) {
textAlign = TextAlign.Center, Text(
maxLines = 1 text = it,
) style = style,
color = color,
overflow = TextOverflow.Ellipsis,
textAlign = TextAlign.Center,
maxLines = 1
)
}
} }
} }