Fix chevron rotation issue.

This commit is contained in:
Benoit Marty
2026-09-21 14:19:54 +02:00
parent 178c80a1a1
commit da2b2e99d6
@@ -241,7 +241,7 @@ private fun ColumnScope.MultiAccountSection(
}
// Animate the chevron icon to rotate when the section is expanded/collapsed
val rotation: Float by animateFloatAsState(
targetValue = if (state.isOtherAccountsSectionExpanded) 180f else 0f,
targetValue = if (state.isOtherAccountsSectionExpanded) -180f else 0f,
animationSpec = tween(
delayMillis = 0,
durationMillis = 300,
@@ -250,11 +250,7 @@ private fun ColumnScope.MultiAccountSection(
)
Icon(
modifier = Modifier.rotate(rotation),
imageVector = if (state.isOtherAccountsSectionExpanded) {
CompoundIcons.ChevronUp()
} else {
CompoundIcons.ChevronDown()
},
imageVector = CompoundIcons.ChevronDown(),
contentDescription = null,
)
}