Daniele Segato
08/02/2021, 9:45 AMAnimatedVisibility
how can I make the container scroll to show the item being expanded? (say I'm at the end of the scroll and there's an expandable itemColton Idle
08/02/2021, 12:03 PMZach Klippenstein (he/him) [MOD]
08/02/2021, 1:37 PMAdam Powell
08/02/2021, 2:09 PMAdam Powell
08/02/2021, 2:10 PMDaniele Segato
08/02/2021, 2:11 PMColumn(Modifier.verticalScroll()) {
// ....
Row(Modifier.fillMaxWidth()) {
Text("Expandable section")
Spacer(Modifier.weight(1f))
IconButton() // toggle expansion
}
AnimatedVisibility(
) {
StuffOnlyVisibleWhenExpanded()
}
}
when this is at the end of the scrollable area (not visible) and it becomes visible the scroll doesn't budge.
So I'm asking what's the simpliest way to make it "scroll" to show.
And I totally agree that it should not automatically scroll but I should be able to control it 🙂Daniele Segato
08/02/2021, 2:11 PMAdam Powell
08/02/2021, 2:13 PMDaniele Segato
08/02/2021, 10:36 PM