You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 14, 2026. It is now read-only.
It looks like Flutter 3.32.0 changed the signature of Navigator.removeRouteBelow which is causing compilation failed when running tests after upgrading to Flutter 3.32.0. See Flutter#157725.
Steps To Reproduce
Install Flutter 3.32.0
Create a test that includes import 'package:mockingjay/mockingjay.dart';
Execute the test.
Expected Behavior
The test should compile successfully.
Additional Context
mockingjay: 1.0.0
Flutter: 3.32.0
Error: Declared type variables of '_MockNavigatorState.removeRouteBelow' doesn't match those on overridden method 'NavigatorState.removeRouteBelow'.
void removeRouteBelow(Route<dynamic> anchorRoute) {
^
../../../../flutter/packages/flutter/lib/src/widgets/navigator.dart:5656:8: Context: This is the overridden method ('removeRouteBelow').
void removeRouteBelow<T extends Object?>(Route<T> anchorRoute, [T? result]) {
^
../../../../AppData/Local/Pub/Cache/hosted/pub.dev/mockingjay-1.0.0/lib/src/mock_navigator.dart:322:8: Error: The method '_MockNavigatorState.removeRouteBelow' has fewer positional arguments than those of overridden method 'NavigatorState.removeRouteBelow'.
void removeRouteBelow(Route<dynamic> anchorRoute) {
^
../../../../flutter/packages/flutter/lib/src/widgets/navigator.dart:5656:8: Context: This is the overridden method ('removeRouteBelow').
void removeRouteBelow<T extends Object?>(Route<T> anchorRoute, [T? result]) {
^
.
Description
It looks like Flutter 3.32.0 changed the signature of Navigator.removeRouteBelow which is causing
compilation failedwhen running tests after upgrading to Flutter 3.32.0. See Flutter#157725.Steps To Reproduce
import 'package:mockingjay/mockingjay.dart';Expected Behavior
The test should compile successfully.
Additional Context
mockingjay: 1.0.0
Flutter: 3.32.0