We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 91bc77d commit ccbeae2Copy full SHA for ccbeae2
packages/flutter/test/material/dialog_test.dart
@@ -3021,6 +3021,14 @@ void main() {
3021
expect(find.byType(BackButton), findsNothing);
3022
expect(find.byType(CloseButton), findsOneWidget);
3023
});
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
+ });
3032
}
3033
3034
@pragma('vm:entry-point')
0 commit comments