Showing
3 changed files
with
9 additions
and
4 deletions
@@ -35,7 +35,7 @@ class CountryView extends GetView<HomeController> { | @@ -35,7 +35,7 @@ class CountryView extends GetView<HomeController> { | ||
35 | onTap: () { | 35 | onTap: () { |
36 | //Get.rootDelegate.toNamed('/home/country'); | 36 | //Get.rootDelegate.toNamed('/home/country'); |
37 | Get.rootDelegate | 37 | Get.rootDelegate |
38 | - .offNamed('/home/country/details?id=$index'); | 38 | + .toNamed('/home/country/details?id=$index'); |
39 | }, | 39 | }, |
40 | trailing: CircleAvatar( | 40 | trailing: CircleAvatar( |
41 | backgroundImage: NetworkImage( | 41 | backgroundImage: NetworkImage( |
@@ -409,9 +409,10 @@ class GetInstance { | @@ -409,9 +409,10 @@ class GetInstance { | ||
409 | /// | 409 | /// |
410 | /// - [force] Will delete the Instances even if marked as `permanent`. | 410 | /// - [force] Will delete the Instances even if marked as `permanent`. |
411 | void deleteAll({bool force = false}) { | 411 | void deleteAll({bool force = false}) { |
412 | - _singl.forEach((key, value) { | 412 | + final keys = _singl.keys.toList(); |
413 | + for (final key in keys) { | ||
413 | delete(key: key, force: force); | 414 | delete(key: key, force: force); |
414 | - }); | 415 | + } |
415 | } | 416 | } |
416 | 417 | ||
417 | void reloadAll({bool force = false}) { | 418 | void reloadAll({bool force = false}) { |
@@ -88,7 +88,11 @@ class GetRouterOutlet extends RouterOutlet<GetDelegate, GetNavConfig> { | @@ -88,7 +88,11 @@ class GetRouterOutlet extends RouterOutlet<GetDelegate, GetNavConfig> { | ||
88 | if (anchorRoute == null) { | 88 | if (anchorRoute == null) { |
89 | // jump the ancestor path | 89 | // jump the ancestor path |
90 | final length = Uri.parse(initialRoute).pathSegments.length; | 90 | final length = Uri.parse(initialRoute).pathSegments.length; |
91 | - return config.currentTreeBranch.skip(length).toList(); | 91 | + |
92 | + return config.currentTreeBranch | ||
93 | + .skip(length) | ||
94 | + .take(length) | ||
95 | + .toList(); | ||
92 | } | 96 | } |
93 | ret = config.currentTreeBranch.pickAfterRoute(anchorRoute); | 97 | ret = config.currentTreeBranch.pickAfterRoute(anchorRoute); |
94 | if (filterPages != null) { | 98 | if (filterPages != null) { |
-
Please register or login to post a comment