Auto scrolling muli-line textfield in compose

You can scroll using scrollState.scrollTo. To track content height change, you can check scrollState.maxValue, for example like this:

LaunchedEffect(scrollState.maxValue) {
    scrollState.scrollTo(scrollState.maxValue)
    // or 
    // scrollState.animateScrollTo(scrollState.maxValue)
}

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top