I'm trying to understand Navigator 2.0 Pages API which allows to modify navigation stack via Navigator.pages property.
I prepared simple demo where I try to remove pages from the backstack by updating the provided list of pages.
However, when simply removing the CustomPage from the Navigator.pages there's an animation glitch. For a split second you can see the page being animated beneath the current page.
Is it a bug in Flutter framework or is there a better way to remove pages from the backstack?
