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.

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:

What I expected: A normal Page A.
flutter doctor

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.

When I was in a other random page(whatever except Page A and B). I do something like this:
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:
What I expected: A normal Page A.
flutter doctor