mirror of
https://github.com/flutter/flutter
synced 2024-09-20 00:32:02 +00:00
Mark leak: instances of OpacityLayer, created by _RenderChip, should be disposed. (#134395)
This commit is contained in:
parent
219efce7f1
commit
0844726ab3
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue