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:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user