Skip to content
This repository was archived by the owner on Apr 14, 2026. It is now read-only.
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
flutter-version:
# The version of Flutter to use should use the minimum Dart SDK version supported by the package,
# refer to https://docs.flutter.dev/development/tools/sdk/releases.
- "3.29.0"
- "3.32.0"
- "3.x"
uses: VeryGoodOpenSource/very_good_workflows/.github/workflows/flutter_package.yml@v1
with:
Expand Down
4 changes: 2 additions & 2 deletions lib/src/mock_navigator.dart
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ class _MockNavigatorState extends NavigatorState {
}

@override
void removeRouteBelow(Route<dynamic> anchorRoute) {
return _navigator.removeRouteBelow(anchorRoute);
void removeRouteBelow<T extends Object?>(Route<T> anchorRoute, [T? result]) {
return _navigator.removeRouteBelow(anchorRoute, result);
}
}
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ homepage: https://github.com/VeryGoodOpenSource/mockingjay

environment:
sdk: ^3.7.0
flutter: ^3.29.0
flutter: ^3.32.0

dependencies:
flutter:
Expand Down
4 changes: 3 additions & 1 deletion test/src/mock_navigator_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -500,7 +500,9 @@ void main() {
});

testWidgets('mocks .removeRouteBelow calls', (tester) async {
when(() => navigator.removeRouteBelow(any())).thenAnswer((_) {});
when(
() => navigator.removeRouteBelow<Object?>(any(), any()),
).thenAnswer((_) {});

await tester.pumpTest(
navigator: navigator,
Expand Down