Add adaptive popup helpers: anchored choice menus and details dialogs

Phase 2b.1 of docs/plans/floating-windows.md. showAppChoiceMenu is a menu
panel anchored to its button on a wide app and a bottom sheet on a phone;
showAppDetails is a dialog or a bottom sheet. Both are on the root
navigator, and the app's width decides, so content in a narrow floating
window still gets desktop popups. The probe window exercises both.
This commit is contained in:
2026-11-10 21:53:35 +00:00
parent f0aadbe4e3
commit 31f495fc18
5 changed files with 423 additions and 0 deletions
+10
View File
@@ -53,3 +53,13 @@ floating chats (`notes/chat-floating-pane.md`); the terminal moves in Phase 3.
hover, SnackBar, pushed page and Back, raise, move, maximise, minimise.
- Not captured in the browser: the text-selection menu (the kit has no
right-click); covered by the layering test only.
## Desktop popups (Phase 2b)
`ui/adaptive/app_popups.dart`: `showAppChoiceMenu` (a short list of choices:
a menu panel anchored to its button on a wide app, a bottom sheet on a phone)
and `showAppDetails` (richer content: a dialog, or a bottom sheet on a phone).
Both are on the root navigator, so they are above every window, and the app's
width decides (`usesDesktopPopups`), not the surface asking: content in a
narrow window on a wide app still gets menus and dialogs. The probe window has
`choice` and `details` buttons for captures.