Added uri construction for queryParameters - #563
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ 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 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
@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>? queryParametersas an optional input parameter for:beamToNamed,beamToReplacementNamedandpopToNamedString 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.