Keep compact bar insets inside the floating chat window

This commit is contained in:
2026-11-10 13:37:16 +00:00
parent c944bcb55b
commit a33c8d6bbe
3 changed files with 31 additions and 1 deletions
@@ -75,4 +75,26 @@ void main() {
);
expect(side, 12);
});
testWidgets('a compact window inside a wide one keeps the phone sides', (
tester,
) async {
late double side;
await tester.pumpWidget(
MediaQuery(
data: const MediaQueryData(size: Size(1280, 800)),
child: WindowMargins(
child: WindowMargins.compact(
child: Builder(
builder: (context) {
side = WindowMargins.sideOf(context);
return const SizedBox();
},
),
),
),
),
);
expect(side, 12);
});
}