mirror of
https://github.com/zarzet/SpotiFLAC-Mobile.git
synced 2026-11-21 20:00:49 +01:00
The Material full player opened as a page sliding up and closed with an in-place fade, while only Mornye shrank back into the mini player. The design asks for one surface that grows and shrinks, with predictive back driving the same transition. NowPlayingRoute takes a morph spec. The Material mini player passes the slow spatial spring (critically damped) and its bounds: the page grows out of the bar's rect behind a scrim and fades in over it, then shrinks back into it on close, back button or drag, reusing the Mornye dismiss geometry with square corners. The cover keeps its Hero flight, which hides the page's own cover, so it is never drawn twice. Reduced motion opens and closes at once. The route registers a binding observer for Android's predictive back while it is current: the swipe previews the shrink, cancel settles open and commit pops from where the preview left it, without a Hero jump. The general predictive back page transition stays off (flutter#152323), and a route above the player keeps the plain system back.