Visitar URL original
Use Size.zero instead of Size.isEmpty() in the zero area test · flutter/flutter@fbdd5a1 · GitHub
Skip to content

Commit fbdd5a1

Browse files
committed
Use Size.zero instead of Size.isEmpty() in the zero area test
1 parent 02023fb commit fbdd5a1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎packages/flutter/test/material/badge_test.dart‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -454,7 +454,7 @@ void main() {
454454
),
455455
);
456456
final Finder label = find.text('X');
457-
expect(tester.getSize(label).isEmpty, isTrue);
457+
expect(tester.getSize(label), Size.zero);
458458
});
459459

460460
testWidgets('Badge.count maxCount limits displayed value', (WidgetTester tester) async {

0 commit comments

Comments
 (0)