Committed by
GitHub
params in url by Get.parameters
this permit this kind of syntax `Get.parameters.addAll({"name": "varginia", "vinis": "viniiss"}); Get.toNamed("/second", arguments: 'Get is the best'); print(Get.parameters); // {name: varginia, vinis: viniiss}` //result in urls => http://localhost:32773/#/second?name=varginia&vinis=viniiss
Showing
1 changed file
with
7 additions
and
0 deletions
@@ -543,6 +543,13 @@ extension GetNavigation on GetInterface { | @@ -543,6 +543,13 @@ extension GetNavigation on GetInterface { | ||
543 | int id, | 543 | int id, |
544 | bool preventDuplicates = true, | 544 | bool preventDuplicates = true, |
545 | }) { | 545 | }) { |
546 | + Get.parameters.forEach((key, value) { | ||
547 | + if (page.contains('?')){ | ||
548 | + page = page + "&$key=$value"; | ||
549 | + }else{ | ||
550 | + page = page + "?$key=$value"; | ||
551 | + }; | ||
552 | + }); | ||
546 | if (preventDuplicates && page == currentRoute) { | 553 | if (preventDuplicates && page == currentRoute) { |
547 | return null; | 554 | return null; |
548 | } | 555 | } |
-
Please register or login to post a comment