diff --git a/packages/flutter/test/material/chip_test.dart b/packages/flutter/test/material/chip_test.dart index 0d8c0576409f..e7708dd28c50 100644 --- a/packages/flutter/test/material/chip_test.dart +++ b/packages/flutter/test/material/chip_test.dart @@ -217,7 +217,7 @@ Finder findTooltipContainer(String tooltipText) { } void main() { - testWidgets('M2 Chip defaults', (WidgetTester tester) async { + testWidgetsWithLeakTracking('M2 Chip defaults', (WidgetTester tester) async { late TextTheme textTheme; Widget buildFrame(Brightness brightness) { @@ -292,7 +292,12 @@ void main() { expect(labelStyle.overflow, textTheme.bodyLarge?.overflow); expect(labelStyle.textBaseline, textTheme.bodyLarge?.textBaseline); expect(labelStyle.wordSpacing, textTheme.bodyLarge?.wordSpacing); - }); + }, + // TODO(polina-c): remove after fixing + // https://github.com/flutter/flutter/issues/134394 + leakTrackingTestConfig: const LeakTrackingTestConfig( + notDisposedAllowList: {'OpacityLayer': 2}, + )); testWidgetsWithLeakTracking('M3 Chip defaults', (WidgetTester tester) async { late TextTheme textTheme;