Thread
#compose
    a

    Artem Kopan

    2 years ago
    Hi everyone, how to make text scrollable?
    Zach Klippenstein (he/him) [MOD]

    Zach Klippenstein (he/him) [MOD]

    2 years ago
    Wrap it in a
    ScrollableColumn
    or
    ScrollableRow
    or both.
    Adam Powell

    Adam Powell

    2 years ago
    I think we have a scrollable modifier for arbitrary elements now too (or if not we will soon!)
    a

    Artem Kopan

    2 years ago
    @Adam Powell Thanks, it works. However, how to show scrollbar ?
    Text(text = "text",
        modifier = Modifier
            .verticalScroll(rememberScrollState())
    )
    Adam Powell

    Adam Powell

    2 years ago
    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.