File tree 2 files changed +8
-1
lines changed
2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -883,6 +883,9 @@ class _BottomNavigationBarState extends State<BottomNavigationBar> with TickerPr
883
883
for (final _Circle circle in _circles) {
884
884
circle.dispose ();
885
885
}
886
+ for (final CurvedAnimation animation in _animations) {
887
+ animation.dispose ();
888
+ }
886
889
super .dispose ();
887
890
}
888
891
Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ import 'dart:ui';
7
7
import 'package:flutter/foundation.dart' ;
8
8
import 'package:flutter/material.dart' ;
9
9
import 'package:flutter_test/flutter_test.dart' ;
10
+ import 'package:leak_tracker_flutter_testing/leak_tracker_flutter_testing.dart' ;
10
11
11
12
import '../widgets/semantics_tester.dart' ;
12
13
@@ -1282,7 +1283,10 @@ void main() {
1282
1283
await checkDragHandleAndColors ();
1283
1284
});
1284
1285
1285
- testWidgets ('showModalBottomSheet does not use root Navigator by default' , (WidgetTester tester) async {
1286
+ testWidgets ('showModalBottomSheet does not use root Navigator by default' ,
1287
+ // TODO(polina-c): remove when fixed https://github.com/flutter/flutter/issues/145600 [leak-tracking-opt-in]
1288
+ experimentalLeakTesting: LeakTesting .settings.withTracked (classes: const < String > ['CurvedAnimation' ]),
1289
+ (WidgetTester tester) async {
1286
1290
await tester.pumpWidget (MaterialApp (
1287
1291
home: Scaffold (
1288
1292
body: Navigator (onGenerateRoute: (RouteSettings settings) => MaterialPageRoute <void >(builder: (_) {
You can’t perform that action at this time.
0 commit comments