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 0908c2e commit 4d10e0cCopy full SHA for 4d10e0c
packages/flutter/test/material/grid_title_test.dart
@@ -48,6 +48,17 @@ void main() {
48
expect(find.text('Simple'), findsOneWidget);
49
});
50
51
+ testWidgets('GridTile does not crash at zero area', (WidgetTester tester) async {
52
+ await tester.pumpWidget(
53
+ const MaterialApp(
54
+ home: Center(
55
+ child: SizedBox.shrink(child: GridTile(child: Text('X'))),
56
+ ),
57
58
+ );
59
+ expect(tester.getSize(find.byType(GridTile)), Size.zero);
60
+ });
61
+
62
testWidgets('GridTileBar does not crash at zero area', (WidgetTester tester) async {
63
await tester.pumpWidget(
64
const MaterialApp(
0 commit comments