mirror of
https://github.com/zarzet/SpotiFLAC-Mobile.git
synced 2026-11-29 07:34:13 +01:00
Going back with the system gesture popped a page only when the finger was lifted: nothing moved under it. A swipe now seeks the page's own pop. The page draws in as a card under the finger, evenly, to about 90 percent at a full swipe, over the page below; letting go finishes the pop from where the finger left it, and a cancelled swipe puts the page back. One observer does this for the whole app. It asks the navigators in the order a back press does (the root first, then the open tab) and only moves a page that a press would pop, so a dialog, sheet or menu above a page still closes first and a page that blocks back is left alone. Per-route observers, as the framework's own builder uses, pick the wrong navigator in an app with nested ones (flutter#152323). The page transition now reads which way it plays from the end the animation left instead of from its status: during a swipe the route's animation still reports forward while it seeks the pop.