'Jetpack compose, bring nth item in column to top of the screen like Twitter Comment section

if you can notice here, as soon as i opened the screen the UI first focused on comment composable on the screen

and i was able to scroll up for top composables.

tried solution

  • take composable coordinate using onGloballyPositioned and added scrollTo but it's not working to



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source