Coder Social home page Coder Social logo

Comments (9)

arkivanov avatar arkivanov commented on May 18, 2024 3

Actually, I found that LookaheadLayout is already available to try in Compose 1.3.0-alpha01. I will play with it and provide some updates here.

from decompose.

arkivanov avatar arkivanov commented on May 18, 2024 3

Yep, LookaheadLayout + movableContentOf should work just fine even with the current animations API. It is already available in Compose 1.3.0-alpha01, however there are immediate bugs, e.g. LookaheadLayout doesn't support having LazyColumn inside, etc.

Screen.Recording.2022-07-24.at.17.27.00.mov

from decompose.

plusmobileapps avatar plusmobileapps commented on May 18, 2024

It would be nice to have a shared element transition between configurations, not sure if something similar to this sample could be done with Decompose?

from decompose.

arkivanov avatar arkivanov commented on May 18, 2024

I have a pending branch that should make it compatible with the official shared transitions (LookaheadLayout + movableContentOf) when they land in Compose. The branch is blocked by the availability of movableContentOf. Waiting for the stable MPP Compose 1.2.0.

from decompose.

plusmobileapps avatar plusmobileapps commented on May 18, 2024

It seems like the animation documentation is out of date since the stack navigation changes. I'm assuming childAnimation is supposed to be stackAnimation?

from decompose.

arkivanov avatar arkivanov commented on May 18, 2024

Thanks for raising! I updated the documentation a while ago with multiple rounds of self code review, but seems like I missed this one.

from decompose.

aartikov avatar aartikov commented on May 18, 2024

@arkivanov Hi. Is it possible to use AnimatedContent with Decompose?

from decompose.

arkivanov avatar arkivanov commented on May 18, 2024

@aartikov Technically it should be possible. E.g. the Child Stack just exposes Value<ChildStack<C, T>> - so you can use something your own instead of the Children function, with AnimatedContent. You can also try the StackAnimation { } function that just provides the current ChildStack and it's up to you how to render children.

from decompose.

aartikov avatar aartikov commented on May 18, 2024

@arkivanov Thank you!

from decompose.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.