Manuel Wrage

    Manuel Wrage

    2 years ago
    I'm trying to replicate flutters Listview widget but don't really know how to do it. Is it possible with the current apis? I already tried to only layout placeables that are in a specific range and it kind of works but is really slow. So i guess thats not the way to go.
    Luca Nicoletti

    Luca Nicoletti

    2 years ago
    Not for now, the only way is to use a
    VerticalScroller
    with a
    Column
    which accepts all your children @Composables
    Manuel Wrage

    Manuel Wrage

    2 years ago
    I know but i wanna write a ScrollingList composable by myself. Maybe it's possible by recomposing on scroll changes and emit only the necessary amount of items to fill the viewport.
    Luca Nicoletti

    Luca Nicoletti

    2 years ago
    I’d emulate the recyclerview behaviour
    l

    Leland Richardson [G]

    2 years ago
    doing this isn’t trivial… we plan on making a component like this but it will likely involve us surfacing some amount of information from the layout and draw layer that isn’t there yet