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,9 +231,14 @@ 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,
|
||||||
|
label = "SummaryMaxLabelAnimation",
|
||||||
|
transitionSpec = animationSpec(),
|
||||||
|
) {
|
||||||
|
Text(
|
||||||
|
text = it,
|
||||||
style = style,
|
style = style,
|
||||||
color = color,
|
color = color,
|
||||||
overflow = TextOverflow.Ellipsis,
|
overflow = TextOverflow.Ellipsis,
|
||||||
|
|
@ -242,6 +247,7 @@ private fun SummaryProficiency(
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@Stable
|
@Stable
|
||||||
private fun animationSpec(): AnimatedContentTransitionScope<*>.() -> ContentTransform = {
|
private fun animationSpec(): AnimatedContentTransitionScope<*>.() -> ContentTransform = {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue