Thread
#compose
    k

    Kshitij Patil

    1 year ago
    if
    scrollState.smoothScrollBy()
    (blocking) is deprecated, what are we supposed to replace it with (suspending) ? I didn’t understand the replacement from deprecated message. Who has
    smoothScrollBy
    method apart from Scrollable?
    matvei

    matvei

    1 year ago
    Sorry about the confusion, due to name collapse it was hard to provide a meaningful Replacement in the @Deprecated.
    smoothScrollBy
    is not an extension function on the ScrollableState, which
    ScrollState
    and
    LazyListState
    implement. You are one import away from this since you need to import this extension function in order for it to work
    k

    Kshitij Patil

    1 year ago
    (scrollState as Scrollable).smoothScrollBy(<value>)
    worked for me. Is this right?
    matvei

    matvei

    1 year ago
    This should work. In the next release the deprecated version will be removed and you won't need this trick