@@ -14,6 +14,7 @@ import 'package:flutter/foundation.dart';
14
14
import 'package:flutter/material.dart' ;
15
15
import 'package:flutter/rendering.dart' ;
16
16
import 'package:flutter_test/flutter_test.dart' ;
17
+ import 'package:leak_tracker_flutter_testing/leak_tracker_flutter_testing.dart' ;
17
18
import 'package:vector_math/vector_math_64.dart' show Vector3;
18
19
19
20
import '../widgets/semantics_tester.dart' ;
@@ -2187,7 +2188,10 @@ void main() {
2187
2188
);
2188
2189
});
2189
2190
2190
- testWidgets ('BottomNavigationBar handles items.length changes' , (WidgetTester tester) async {
2191
+ testWidgets ('BottomNavigationBar handles items.length changes' ,
2192
+ // TODO(polina-c): remove when fixed https://github.com/flutter/flutter/issues/145600 [leak-tracking-opt-in]
2193
+ experimentalLeakTesting: LeakTesting .settings.withTracked (classes: const < String > ['CurvedAnimation' ]),
2194
+ (WidgetTester tester) async {
2191
2195
// Regression test for https://github.com/flutter/flutter/issues/10322
2192
2196
2193
2197
Widget buildFrame (int itemCount) {
@@ -2322,7 +2326,10 @@ void main() {
2322
2326
);
2323
2327
}
2324
2328
for (int pump = 1 ; pump < 9 ; pump++ ) {
2325
- testWidgets ('pump $pump ' , (WidgetTester tester) async {
2329
+ testWidgets ('pump $pump ' ,
2330
+ // TODO(polina-c): remove when fixed https://github.com/flutter/flutter/issues/145600 [leak-tracking-opt-in]
2331
+ experimentalLeakTesting: LeakTesting .settings.withTracked (classes: const < String > ['CurvedAnimation' ]).withCreationStackTrace (),
2332
+ (WidgetTester tester) async {
2326
2333
await tester.pumpWidget (runTest ());
2327
2334
await tester.tap (find.text ('Green' ));
2328
2335
0 commit comments