Skip to content
Merged
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
4 changes: 2 additions & 2 deletions flutter_modular/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
## [6.3.4] - 2025-03-31
- FIX: prevent navigation block when device time is adjusted backward
## [6.3.4] - 2025-05-02
- Fix Deep Link query parameters

## [6.3.3] - 2024-04-08
- Fix Deep Link
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,10 @@ class ModularRouteInformationParser
path = location;
}

return selectBook(path);
return selectBook(
path,
arguments: routeInformation.uri.queryParameters,
);
}

@override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,27 @@ void main() {
expect(book.chapters().first.name, '/');
});

test('parseRouteInformation calls selectBook with correct arguments',
() async {
final routeMock = ParallelRouteMock();
final params = {'param': 'value'};
final uri = Uri.parse('/test');
when(() => routeMock.uri).thenReturn(uri);
when(() => routeMock.parent).thenReturn('');
when(() => routeMock.middlewares).thenReturn([]);
when(() => getRoute.call(any()))
.thenAnswer((_) async => Success(routeMock));
when(() => getArguments.call())
.thenReturn(Success(ModularArguments(uri: uri, data: params)));
when(() => reportPush(routeMock)).thenReturn(const Success(unit));

const routeInformation = RouteInformation(location: '/test?param=value');
final book = await parser.parseRouteInformation(routeInformation);

expect(book.uri.toString(), '/test');
expect(parser.getArguments.call().getOrNull()?.data, params);
});

test('selectBook with parents', () async {
final routeMock = ParallelRouteMock();
when(() => routeMock.uri).thenReturn(Uri.parse('/test'));
Expand Down