Skip to content

Commit ccbeae2

Browse files
committed
Make sure that a SimpleDialog doesn't crash in 0x0 environment
1 parent 91bc77d commit ccbeae2

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

packages/flutter/test/material/dialog_test.dart

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3021,6 +3021,14 @@ void main() {
30213021
expect(find.byType(BackButton), findsNothing);
30223022
expect(find.byType(CloseButton), findsOneWidget);
30233023
});
3024+
3025+
testWidgets("SimpleDialog doesn't crash at zero area", (WidgetTester tester) async {
3026+
await tester.pumpWidget(
3027+
const MaterialApp(
3028+
home: SizedBox.shrink(child: SimpleDialog(title: Text('X'))),
3029+
),
3030+
);
3031+
});
30243032
}
30253033

30263034
@pragma('vm:entry-point')

0 commit comments

Comments
 (0)