galex

    galex

    2 years ago
    Where does Compose stand about Material Motion? https://material.io/design/motion/the-motion-system.html I love the look of those transitions 😍
    matvei

    matvei

    2 years ago
    Yeah these transitions are slick! Compose has material package, so it personally makes sense to have this transitions provided out of the box at some point in the future. Having said that, you already can make it on your own. Take a look at the
    Crossfade
    component (source). You can copy and tweak it to add some axis motion when content is changing, for example, making it same or at least very close to material motion specs
    galex

    galex

    2 years ago
    Awesome news! For transitions I see CrossFade is a good starting point, what about modal content?
    matvei

    matvei

    2 years ago
    galex

    galex

    2 years ago
    Like those ones https://material.io/design/motion/the-motion-system.html#fade when the end result is a modal Composable on top of the one where the user clicked on an item for example
    I guess I should look at AlertDialog ?
    matvei

    matvei

    2 years ago
    Maybe, but I think that
    CrossFade
    tweaking might be enough. You see, you can change CrossFade to be not only crossfade, but any enter / exit animation for appear/disappear content. To make it more like
    EnterExitTransition
    , and not Crossfade 🙂
    And with that you can make everything from the section you've sent
    galex

    galex

    2 years ago
    Super interesting! I think at the end if would be super helpful if we had a composable ready to use for each of the examples there, in the meantime I’d deep dive inside of CrossFade, thanks!