Add the shell window host with layering acceptance tests
Phase 1.3 and 1.4 of docs/plans/floating-windows.md. Windows are plain children of the terminal stage's stack in the shell page, outside every destination, so popups opened from one are above all of them. Each window has its own page navigator: pushed pages open inside the window, and popup routes go to the root navigator. One WindowFrame chrome (move, resize, minimise, maximise, close), a focus scope per window, a ScaffoldMessenger per window. No feature uses it yet. The capture fixture opens probe windows with ?windows=N, and window_layering_test.dart covers every popup type from a window over Chat and over another destination.
This commit is contained in:
@@ -172,10 +172,8 @@ class WindowManager extends ChangeNotifier {
|
||||
void setMinimized(String id, bool minimized) =>
|
||||
_replace(id, (w) => w.copyWith(minimized: minimized));
|
||||
|
||||
void setMaximized(String id, bool maximized) => _replace(
|
||||
id,
|
||||
(w) => w.copyWith(maximized: maximized, minimized: false),
|
||||
);
|
||||
void setMaximized(String id, bool maximized) =>
|
||||
_replace(id, (w) => w.copyWith(maximized: maximized, minimized: false));
|
||||
|
||||
/// Replaces what [id] shows (a chat that moved to a new session).
|
||||
void setContent(String id, String contentId, {Map<String, Object?>? data}) =>
|
||||
|
||||
Reference in New Issue
Block a user