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 // Animate the chevron icon to rotate when the section is expanded/collapsed
val rotation: Float by animateFloatAsState( val rotation: Float by animateFloatAsState(
targetValue = if (state.isOtherAccountsSectionExpanded) 180f else 0f, targetValue = if (state.isOtherAccountsSectionExpanded) -180f else 0f,
animationSpec = tween( animationSpec = tween(
delayMillis = 0, delayMillis = 0,
durationMillis = 300, durationMillis = 300,
@@ -250,11 +250,7 @@ private fun ColumnScope.MultiAccountSection(
) )
Icon( Icon(
modifier = Modifier.rotate(rotation), modifier = Modifier.rotate(rotation),
imageVector = if (state.isOtherAccountsSectionExpanded) { imageVector = CompoundIcons.ChevronDown(),
CompoundIcons.ChevronUp()
} else {
CompoundIcons.ChevronDown()
},
contentDescription = null, contentDescription = null,
) )
} }