Add missing animation on the SummaryProficiency cell
This commit is contained in:
parent
1c6fd505a5
commit
3af7757f30
1 changed files with 14 additions and 8 deletions
|
|
@ -231,15 +231,21 @@ private fun SummaryProficiency(
|
|||
size = MaterialTheme.lexicon.dimens.summary.mastery,
|
||||
multiplier = value.multiplier,
|
||||
)
|
||||
Text(
|
||||
AnimatedContent(
|
||||
modifier = Modifier.weight(weight = 1f),
|
||||
text = value.label,
|
||||
style = style,
|
||||
color = color,
|
||||
overflow = TextOverflow.Ellipsis,
|
||||
textAlign = TextAlign.Center,
|
||||
maxLines = 1
|
||||
)
|
||||
targetState = value.label,
|
||||
label = "SummaryMaxLabelAnimation",
|
||||
transitionSpec = animationSpec(),
|
||||
) {
|
||||
Text(
|
||||
text = it,
|
||||
style = style,
|
||||
color = color,
|
||||
overflow = TextOverflow.Ellipsis,
|
||||
textAlign = TextAlign.Center,
|
||||
maxLines = 1
|
||||
)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue