Floating windows: draw the resize grip under the window's tooltips

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-12-03 18:00:10 +00:00
parent e070ded799
commit a5c502a0d8
3 changed files with 36 additions and 9 deletions
+12 -1
View File
@@ -2,7 +2,11 @@ import 'package:flutter/material.dart';
import 'package:flutter/rendering.dart';
import 'window_frame.dart'
show WindowOutline, windowCornerRadius, windowTitleBarHeight;
show
WindowOutline,
WindowResizeGrip,
windowCornerRadius,
windowTitleBarHeight;
import 'window_scope.dart';
/// A floating window's own page stack. Pages pushed from the window's
@@ -157,6 +161,13 @@ class WindowPageBox extends StatelessWidget {
),
child: const WindowOutline(),
),
// The resize grip, likewise under the tooltips (the window layer
// keeps the drag target).
if (WindowScope.maybeOf(context)?.entry.maximized == false)
Positioned.fromRect(
rect: Rect.fromLTWH(body.right - 16, body.bottom - 16, 16, 16),
child: const IgnorePointer(child: WindowResizeGrip()),
),
],
);
}