Skip to content

Delayed transitions are not trivial to set up #253

Description

@FlutterIssues

Issue by Hixie
Tuesday Nov 03, 2015 at 18:56 GMT
Originally opened as https://github.com/flutter/engine/issues/1921


We should look at how we can make wrapping a curve in an interval in a ValuePerformance easier.

Activity

  1. added this to the milestone on Nov 9, 2015
  2. Hixie commented on Dec 28, 2015

    @Hixie
    Contributor

    Maybe a PerformanceView that take a PerformanceView on one side, has a startAt argument (default 0.0) and an endAt argument (default 1.0), and implicitly creates the Interval that it applies to the PerformanceView that it exposes?

  3. abarth commented on Dec 28, 2015

    @abarth
    Contributor

    Sounds about right.

    The tricky question here is whether we want to pump frames in the time period before we start the animation. Imagine you schedule an animation to start in 30 seconds. Do we really want to pump frames that whole time or do we want to use a timer to sleep until we're about ready to start?

    The downside of using a timer is that the delay won't be measured with the animation clock. That means if you have animation that's running for a minute and another that starts with a delay of 30s, it's not guaranteed that the delayed animation will start on the exact frame where the first animation passes the halfway mark.

    IMHO, we should pump frames during the delay for now because that will be correct behavior and file a bug about using less power when waiting for a delayed animation.

  4. Hixie commented on Dec 28, 2015

    @Hixie
    Contributor

    See #175.

  5. Hixie commented on Jun 6, 2017

    @Hixie
    Contributor

    It seems like this is trivial now using either Interval or async/await.

  6. github-actions commented on Aug 17, 2021

    @github-actions

    This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.

  7. locked as resolved and limited conversation to collaborators on Aug 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    a: animationAnimation APIsframeworkflutter/packages/flutter repository. See also f: labels.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions