I have `AnimatedVisibility` and want to "bring int...
# compose
j
I have
AnimatedVisibility
and want to "bring into view" the expanded area (i.e. to use
BringIntoViewRequester
). But somehow this should be requested after the animation. What is the clean way to handle this?
Copy code
.onSizeChanged {
  if (visible) {
    scope.launch {
      requester.bringIntoView()
    }
  }
}
This seems to do the trick! 🎉 Obviously, it is called multiple times during the animation, but at least it scrolls all the time. 🙂