Files
SpotiFLAC-Mobile/lib
zarzet dd139d923b feat(motion): Material pages follow the system back swipe
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.
2026-11-22 20:05:37 +07:00
..