Mark leak: instances of OpacityLayer, created by _RenderChip, should be disposed. (#134395)

This commit is contained in:
Polina Cherkasova
2023-09-11 10:12:02 -07:00
committed by GitHub
parent 219efce7f1
commit 0844726ab3

View File

@@ -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: <String, int?>{'OpacityLayer': 2},
));
testWidgetsWithLeakTracking('M3 Chip defaults', (WidgetTester tester) async {
late TextTheme textTheme;