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
2021-02-11 20:53:09 -0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
4d570157b5bc13d2fd01832652e4a1f4c032fb65
4d570157
1 parent
05d10909
Solve test problems
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
1 deletions
lib/get_navigation/src/extension_navigation.dart
lib/get_navigation/src/extension_navigation.dart
View file @
4d57015
...
...
@@ -543,10 +543,24 @@ extension GetNavigation on GetInterface {
int
id
,
bool
preventDuplicates
=
true
,
})
{
Get
.
parameters
.
forEach
((
key
,
value
)
async
{
if
(
await
page
.
contains
(
'?'
))
{
page
=
"
$page${"&$key=$value"}
"
;
}
else
{
page
=
"
$page${"?$key=$value"}
"
;
}
});
// Get.parameters.clear();
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