Toggle navigation
Toggle navigation
This project
Loading...
Sign in
flutter_package
/
fluttertpc_get
Go to a project
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
Hitalo de Jesus do Rosário Souza
2021-02-11 21:07:49 -0300
Browse Files
Options
Browse Files
Download
Plain Diff
Committed by
GitHub
2021-02-11 21:07:49 -0300
Commit
55ab7211687b208f2eebcf5ac0034c73273d9b79
55ab7211
2 parents
1635aba7
7933e2ce
Merge pull request #1 from enghitalo/master
Solve test problems
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
5 deletions
lib/get_navigation/src/extension_navigation.dart
lib/get_navigation/src/extension_navigation.dart
View file @
55ab721
...
...
@@ -543,17 +543,23 @@ extension GetNavigation on GetInterface {
int
id
,
bool
preventDuplicates
=
true
,
})
{
Get
.
parameters
.
forEach
((
key
,
value
)
{
if
(
page
.
contains
(
'?'
))
{
page
=
page
+
"&
$key
=
$value
"
;
Get
.
parameters
.
forEach
((
key
,
value
)
async
{
if
(
await
page
.
contains
(
'?'
))
{
page
=
"
$page${"&$key=$value"}
"
;
}
else
{
page
=
page
+
"?
$key
=
$value
"
;
page
=
"
$page${"?$key=$value"}
"
;
}
});
if
(
preventDuplicates
&&
page
==
currentRoute
)
{
return
null
;
}
return
global
(
id
)?.
currentState
?.
pushNamed
<
T
>(
page
,
arguments:
arguments
);
// Get.parameters.clear();
return
global
(
id
)
?.
currentState
?.
pushNamed
<
T
>(
page
,
arguments:
arguments
)
?.
then
((
_
)
{
Get
.
parameters
.
clear
();
});
}
/// **Navigation.pushReplacementNamed()** shortcut.<br><br>
...
...
Please
register
or
login
to post a comment