Question: How can you make a VerticalScroller stay...
# compose
g
Question: How can you make a VerticalScroller stay scrolled to the end of the list as new data is added? Right now my data is added but the list does not move.
Copy code
VerticalScroller(
            isScrollable = true,
            child = child
        )
c
if nobody has a better idea you could try using your own ScrollerPosition and scrollTo when new data is added
👍 1
Copy code
/**
 * Instantly jump to position in pixels
 *
 * @param value target value to jump to, value will be coerced to 0..maxPosition
 */
since it's coerced you can try setting to Float.POSITIVE_INFINITY and it should scroll to the bottom
👍 1