Skip to content

ScrollPosition.animateTo should build last frame before resolving animation #32054

@shihaohong

Description

@shihaohong

Currently, there are no tests to ensure that when TabBarView is warping, the last frame of _pageController.animateToPage is built before the final page swapping is completed. This used to cause an exception to be thrown with nested TabBarViews (see #31581 for context).

There could probably be a robust fix to ScrollPosition.animateTo to ensure that the last frame is built prior to completing the animation, and a test to verify that this occurs properly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    c: proposalA detailed proposal for a change to Flutterf: material designflutter/packages/flutter/material repository.frameworkflutter/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