Hi everyone, how to make text scrollable?
# compose
a
Hi everyone, how to make text scrollable?
z
Wrap it in a
ScrollableColumn
or
ScrollableRow
or both.
a
I think we have a scrollable modifier for arbitrary elements now too (or if not we will soon!)
a
@Adam Powell Thanks, it works. However, how to show scrollbar ?
Copy code
Text(text = "text",
    modifier = Modifier
        .verticalScroll(rememberScrollState())
)
a
Today, hold the scroll state in a val and write another modifier that draws an associated scroll bar given the scroll state as input. We'll probably have a few of these available later.