Add the Windows menu, window cycling, edge snapping and size per kind
Phase 4 of docs/plans/floating-windows.md. A bar button lists the app's windows on every tab (show one, Show all, Minimise all, Close all). Alt+` and Alt+Shift+` bring the next or previous window to the front. Dropping a title at the left or right edge fills that half, at the top it maximises. A new window of a kind opens at the size that kind was last given.
This commit is contained in:
@@ -85,16 +85,16 @@ void main() {
|
||||
);
|
||||
await tester.drag(
|
||||
find.byKey(const ValueKey('window-title')),
|
||||
const Offset(5000, 5000),
|
||||
const Offset(600, 5000),
|
||||
);
|
||||
await tester.pumpAndSettle();
|
||||
expect(
|
||||
windowRect(tester, 'Probe a'),
|
||||
const Rect.fromLTWH(880, 640, 400, 160),
|
||||
const Rect.fromLTWH(750, 640, 400, 160),
|
||||
);
|
||||
expect(
|
||||
manager.byId(entry.id)!.frame,
|
||||
const Rect.fromLTWH(880, 640, 400, 160),
|
||||
const Rect.fromLTWH(750, 640, 400, 160),
|
||||
);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user