Thread
#compose
    pavi2410

    pavi2410

    1 year ago
    Do anybody know how to make dynamic gradient list like this? I tried to use ScrollableColumn with its scrollState, but I am super confused how to vary the gradient on scroll
    Colton Idle

    Colton Idle

    1 year ago
    This looks really cool! (idk how I would feel about this as a user) but it does look cool!
    Adriano Celentano

    Adriano Celentano

    1 year ago
    Looks nice. I didnt really work with scrollable composables yet. But i would guess u can have the scroll position as a state. I think u could then pass that state to the children of the list. Inside the children u could use Lineargadient and use the Color lerp function to get the current value of the color based on the scrollstate.
    pavi2410

    pavi2410

    1 year ago
    Good tip @Adriano Celentano about the Color.lerp function 👍
    caelum19

    caelum19

    1 year ago
    Would be lovely if Compose offered some DSLs for making and applying filters. A single gradient transparent block above the message backgrounds and under the white text would be a nice way to do this
    I suppose you could already do that but without any "blending mode"s the background would have the gradient too
    s

    Se7eN

    1 year ago
    Did anyone do this?