@@ -7,6 +7,7 @@ import 'dart:ui';
77import 'package:flutter/foundation.dart' ;
88import 'package:flutter/material.dart' ;
99import 'package:flutter_test/flutter_test.dart' ;
10+ import 'package:leak_tracker_flutter_testing/leak_tracker_flutter_testing.dart' ;
1011
1112import '../widgets/semantics_tester.dart' ;
1213
@@ -1672,7 +1673,8 @@ void main() {
16721673 });
16731674
16741675 group ('Modal BottomSheet avoids overlapping display features' , () {
1675- testWidgets ('positioning using anchorPoint' , (WidgetTester tester) async {
1676+ testWidgetsWithLeakTracking ('positioning using anchorPoint' ,
1677+ (WidgetTester tester) async {
16761678 await tester.pumpWidget (
16771679 MaterialApp (
16781680 builder: (BuildContext context, Widget ? child) {
@@ -1708,7 +1710,12 @@ void main() {
17081710 // Should take the right side of the screen
17091711 expect (tester.getTopLeft (find.byType (Placeholder )).dx, 410 );
17101712 expect (tester.getBottomRight (find.byType (Placeholder )).dx, 800 );
1711- });
1713+ },
1714+ leakTrackingTestConfig: const LeakTrackingTestConfig (
1715+ // TODO(polina-c): remove after fix
1716+ // https://github.com/flutter/flutter/issues/133594
1717+ notDisposedAllowList: < String , int ? > {'ValueNotifier<EdgeInsets>' : 1 }
1718+ ));
17121719
17131720 testWidgets ('positioning using Directionality' , (WidgetTester tester) async {
17141721 await tester.pumpWidget (
0 commit comments