-
-
Notifications
You must be signed in to change notification settings - Fork 129
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added uri construction for queryParameters #563
base: master
Are you sure you want to change the base?
Conversation
Codecov Report
@@ Coverage Diff @@
## master #563 +/- ##
==========================================
+ Coverage 96.62% 96.91% +0.29%
==========================================
Files 13 13
Lines 888 909 +21
==========================================
+ Hits 858 881 +23
+ Misses 30 28 -2
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
@Lorenzohidalgo Thanks for the PR! 💙 This is definitely a useful feature, but now that I think of it... Maybe we should switch to We should also update all the functions in |
Hi @slovnicki, Thanks for your feedback! I also agree that maybe switching to Either way, I would be happy to help with implementing this further. Just let me know If I should make the complete change to |
@Lorenzohidalgo Yeah, it might be best if we don't do the full transition to |
Perfect @slovnicki , I'll implement the requested changes and let you know once it's ready for the next review 😉 |
Hey there @slovnicki , I've finally had a moment to fix the requested changes:
Let me know if anything else should be updated 😉 |
This PR intends to help avoid replicating code when using the beamer package and URI's with query parameters. While refactoring my code I came across multiple navigation calls where I could avoid manually constructing the URI if the beamer package accepted query parameters as an input.
I've made the following changes:
Map<String, dynamic>? queryParameters
as an optional input parameter for:beamToNamed
,beamToReplacementNamed
andpopToNamed
String constructUri(String uri, Map<String, dynamic>? queryParameters)
that return the URI with the formatted query parameters appended at the end.@slovnicki feel free to request any additional changes to my code or discard the pull request if you don't consider the changes relevant/useful.