File tree Expand file tree Collapse file tree 2 files changed +4
-9
lines changed Expand file tree Collapse file tree 2 files changed +4
-9
lines changed Original file line number Diff line number Diff line change @@ -2792,6 +2792,9 @@ class Navigator extends StatefulWidget {
2792
2792
);
2793
2793
return true ;
2794
2794
}());
2795
+ for (final Route <dynamic >? route in result) {
2796
+ route? .dispose ();
2797
+ }
2795
2798
result.clear ();
2796
2799
}
2797
2800
} else if (initialRouteName != Navigator .defaultRouteName) {
Original file line number Diff line number Diff line change @@ -334,15 +334,7 @@ void main() {
334
334
expect (find.text ('route "/a/b"' ), findsNothing);
335
335
expect (find.text ('route "/b"' ), findsNothing);
336
336
}
337
- },
338
- // TODO(polina-c): remove after fixing
339
- // https://github.com/flutter/flutter/issues/133695
340
- leakTrackingTestConfig: const LeakTrackingTestConfig (
341
- notDisposedAllowList: < String , int ? > {
342
- 'ValueNotifier<String?>' : 3 ,
343
- 'MaterialPageRoute<dynamic>' : 3 ,
344
- },
345
- ));
337
+ });
346
338
347
339
testWidgetsWithLeakTracking ('Make sure initialRoute is only used the first time' , (WidgetTester tester) async {
348
340
final Map <String , WidgetBuilder > routes = < String , WidgetBuilder > {
You can’t perform that action at this time.
0 commit comments