Skip to content

package animations:OpenContainer bug with route pushAndRemoveUntil. #72238

@Zony-Zhao

Description

@Zony-Zhao

I'm sure this is a bug with packages animation. I saw some other issue about route problems using OpenContainer, but not sure whether this is exactly the same thing.

To reproduce

This is what Page A looks like.

When tapping on a ListTile, it opens Page B like the way demo page shows. This works well.
image

When I was in a other random page(whatever except Page A and B). I do something like this:

   Navigator.of(context).pushAndRemoveUntil(
            MaterialPageRoute(
              builder: (context) => PageB(),
            ),
            ModalRoute.withName('/PageA'));
        }

So I can just jump directly to Page B, without tapping on the ListTile like the normal way. And when I tap on the back icon button(implied back button in the left top) on the PageB, this happens:

image

What I expected: A normal Page A.

flutter doctor

image

Metadata

Metadata

Assignees

Labels

a: animationAnimation APIsf: routesNavigator, Router, and related APIs.found in release: 1.25Found to occur in 1.25frameworkflutter/packages/flutter repository. See also f: labels.has reproducible stepsThe issue has been confirmed reproducible and is ready to work onp: animationsThe animations package

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions