lukepighetti / fluro

Fluro is a Flutter routing library that adds flexible routing options like wildcards, named parameters and clear route definitions.
https://pub.dev/packages/fluro
MIT License
3.66k stars 416 forks source link

Error after refresh page with appended argument. #262

Open bthemono opened 2 years ago

bthemono commented 2 years ago

Hi, i have a problem refreshing a web page with an argument appended. The web page crashes with the following error : "Expected a value of type 'Handler', but got one of type 'Null'". How i can refresh a page with 1 argument appended? Thank you very much.

Here is the code:

AppRouter.router.navigateTo(context, "/edit/$idVolunteer", transition: TransitionType.none);

router.define("edit/:idVolunteer", handler: editVolunteer, transitionType: TransitionType.none);
bthemono commented 2 years ago

Thank you, just resolved. The problem was a "/" more in the url.