We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2ec62d2 commit 5661eaaCopy full SHA for 5661eaa
test/layer/circle_layer_test.dart
@@ -23,7 +23,13 @@ void main() {
23
24
await tester.pumpWidget(TestApp(circles: circles));
25
expect(find.byType(FlutterMap), findsOneWidget);
26
- expect(find.byType(CircleLayer), findsWidgets);
27
- expect(find.byKey(key), findsOneWidget);
+ expect(find.byType(CircleLayer), findsOneWidget);
+
28
+ // Assert that batching works and all circles are drawn into the same
29
+ // CustomPaint/Canvas.
30
+ expect(
31
+ find.descendant(
32
+ of: find.byType(CircleLayer), matching: find.byType(CustomPaint)),
33
+ findsOneWidget);
34
});
35
}
0 commit comments