Keep compact bar insets inside the floating chat window
This commit is contained in:
@@ -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);
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user