Archie

    Archie

    1 year ago
    Is there any way to add a
    footer
    to a
    LazyColumn
    so that if the items inside a
    LazyColumn
    doesn't consume all available space, the
    footer
    will be pinned at the bottom of the
    LazyColumn
    but if the items fill all the available space, the
    footer
    would act as a normal
    LazyColumn
    item?
    On top of this, I was wondering if there is a way to make a
    footer
    sticky inside a
    LazyColumn
    .
    Andrey Kulikov

    Andrey Kulikov

    1 year ago
    verticalArrangement param will help you to achieve this behaviour
    and no, unfortunately there is no stickyFooter functionality
    Archie

    Archie

    1 year ago
    Hi @Andrey Kulikov, Thank you very much. This means implementing my own
    verticalArrangement
    right?
    Andrey Kulikov

    Andrey Kulikov

    1 year ago
    there is Arrangement.SpaceBetween, but it will work for you only if you have one item and a footer, but yes, it should be easy to write your own implementation
    Archie

    Archie

    1 year ago
    yeah.
    SpaceBetween
    really limits the number of item inside the
    LazyColumn
    to a maximum of 2. So i guess creating a different implementation would be better.