31 lines
1.3 KiB
Markdown
31 lines
1.3 KiB
Markdown
# No app Back overrides
|
|
|
|
User request (2026-10-24): "I don't want any overrides in the back button anymore."
|
|
|
|
## Removed
|
|
|
|
- Router root double-back ("Press back again to close", `AndroidRootExit`,
|
|
deleted) and its root `PopScope`, including the wide-chat variant from 7bb95d46.
|
|
- Router step-up: a stage to its run/pipeline and an inline run/pipeline to its
|
|
list (`_stepUp`, `onPopToRuns`, `onPopToChat`).
|
|
- Router-side closing of Search/Templates/Schedules: they are Navigator pages,
|
|
so the stock pop closes them through `onDidRemovePage`.
|
|
- The standalone Templates screen's step-back `PopScope` (the app mounts it
|
|
embedded, so it never ran in the app).
|
|
|
|
`AppRouterDelegate.popRoute` is now only `Navigator.maybePop()`: it pops the top
|
|
page or dialog, otherwise Back belongs to the platform (one press leaves).
|
|
|
|
## Consequences
|
|
|
|
- A wide-window run or pipeline open inside its tab is not a page, so system
|
|
Back leaves the app; the on-screen Back in the bar still returns to the list.
|
|
Same for a wide chat beside its list.
|
|
- Kept: `PopScope(canPop: !_sending)` on dialogs and the server editor, which
|
|
block dismissal only while a request is in flight.
|
|
|
|
## Evidence
|
|
|
|
Router, navigation, wide-run, chat, search and templates tests rewritten to assert
|
|
stock Back; `flutter analyze` clean; full suite passes. No device verification.
|