gurleensethi / sailor

Easy page navigation and management in Flutter apps.
https://pub.dev/packages/sailor
MIT License
145 stars 24 forks source link

Is there any way to access arguments from URL in Flutter Web? #51

Open tapizquent opened 3 years ago

tapizquent commented 3 years ago

I am currently building an application which contains a list of items.

I noticed that Sailor does add the route name to the URL as you would expect from a normal web app.

I also do know we can programmatically pass arguments and params to the pages when navigating to the route.

My question is, is there any way to get the arguments passed in the URL with Sailor?

That is, if we have http://localhost:62656/#/book?id=1

Can I get the id from the URL as an argument for the route?