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
Jonny Borges
2021-08-13 07:17:42 -0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
713874101afbd4ccf6227372b788e8578524b72b
71387410
1 parent
e9def378
revert remove takes than limits the router outlet depth
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
4 deletions
example/lib/pages/home/presentation/views/country_view.dart
lib/get_instance/src/get_instance.dart
lib/get_navigation/src/nav2/router_outlet.dart
example/lib/pages/home/presentation/views/country_view.dart
View file @
7138741
...
...
@@ -35,7 +35,7 @@ class CountryView extends GetView<HomeController> {
onTap:
()
{
//Get.rootDelegate.toNamed('/home/country');
Get
.
rootDelegate
.
off
Named
(
'/home/country/details?id=
$index
'
);
.
to
Named
(
'/home/country/details?id=
$index
'
);
},
trailing:
CircleAvatar
(
backgroundImage:
NetworkImage
(
...
...
lib/get_instance/src/get_instance.dart
View file @
7138741
...
...
@@ -409,9 +409,10 @@ class GetInstance {
///
/// - [force] Will delete the Instances even if marked as `permanent`.
void
deleteAll
({
bool
force
=
false
})
{
_singl
.
forEach
((
key
,
value
)
{
final
keys
=
_singl
.
keys
.
toList
();
for
(
final
key
in
keys
)
{
delete
(
key:
key
,
force:
force
);
}
);
}
}
void
reloadAll
({
bool
force
=
false
})
{
...
...
lib/get_navigation/src/nav2/router_outlet.dart
View file @
7138741
...
...
@@ -88,7 +88,11 @@ class GetRouterOutlet extends RouterOutlet<GetDelegate, GetNavConfig> {
if
(
anchorRoute
==
null
)
{
// jump the ancestor path
final
length
=
Uri
.
parse
(
initialRoute
).
pathSegments
.
length
;
return
config
.
currentTreeBranch
.
skip
(
length
).
toList
();
return
config
.
currentTreeBranch
.
skip
(
length
)
.
take
(
length
)
.
toList
();
}
ret
=
config
.
currentTreeBranch
.
pickAfterRoute
(
anchorRoute
);
if
(
filterPages
!=
null
)
{
...
...
Please
register
or
login
to post a comment