Thread
#compose
    Quentin Dommerc

    Quentin Dommerc

    2 years ago
    Hey everyone! What seems to be the encouraged alternative between
    Modifier.foo() + Modifier.bar()
    and
    Modifier.foo().bar()
    ?
    Fudge

    Fudge

    2 years ago
    the shorter one
    Adam Powell

    Adam Powell

    2 years ago
    The
    +
    is leftover from before the fluent builder-factory style. There's work in progress to replace it with
    Modifier.then(other).bar()
    cc @matvei 🙂
    matvei

    matvei

    2 years ago
    Yeah, it's WIP, but later
    plus & +
    will be replaced by
    then
    like
    Modifier.padding(...).background(...).then(myModifierFromClosure)
    . It's easier to read, easy to chain and by typing
    .
    after the modifier you immediately go into the autocompete world where all the accessible modifiers are visible.
    Quentin Dommerc

    Quentin Dommerc

    2 years ago
    alright thanks 🙂