beamer
beamer copied to clipboard
[Q] BeamLocation - BeamerDelegate - RoutesLocationBuilder - routes
Hello, some one can help me? I can't find my answer in the documentation or in github issues.
I will try to explain my problem: I have a BeamerDelegate with RoutesLocationBuilder like this (3 routes):
BeamerDelegate(
locationBuilder: RoutesLocationBuilder(
routes: {
'/folders': (context, state, data) => const Screen1(),
'/folders/:folderID': (context, state, data) => const Screen2(folderID: state.pathParameters['folderID']),
'/folders/images/:imageID': (context, state, data) => const Screen3(imageID: state.pathParameters['imageID']),
}
)
);
When i go on:
/folders
=> screen1 OK
/folders/3
=> screen2 with folderID 3 OK
/folders/images/2
=> go on screen2 with folderID null NOT OK
I try to invert /folder/:folderID and /folders/images/:imageID but same result.
I have also a pathPatterns in a BeamLocation with
[
'/home',
'/folders',
'/folders/:folderID',
'/folders/images/:imageID',
]
If you need more example or code, tell me!
Thank you
Maybe I don't get it, but shouldn't you use this path instead?
'/folders/:folderID/images/:imageID'