You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 511d2e3
Browse filesBrowse the repository at this point in the historyBrowse files
fix(router): keep the back button working after a settings sub-page
The PopScope that sent back to home lived inside the settings branch. Branches
stay mounted after the user leaves them, so it kept answering presses meant for
other branches and the app could no longer be closed with back at all. Reported
upstream as flutter/flutter#193098.
Move the handling to the shell, where exactly one instance exists and it always
belongs to the branch on screen. The NotificationListener beside it keeps the
platform told that Flutter handles back; without it Android stops believing that
once a branch pops a page, and closes the app without calling Flutter.
Verified on an Android 16 emulator with both the back button and the edge swipe.
Co-Authored-By: Claude Opus 5 <[email protected]>
0 commit comments