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
2023-09-05 23:01:19 -0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
c2d6309531564abcf62c9a73e20ad8ee33b5d2b4
c2d63095
1 parent
622e289e
add restorationScopeId to nestedRoutes
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
lib/get_navigation/src/routes/router_outlet.dart
lib/get_navigation/src/routes/router_outlet.dart
View file @
c2d6309
...
...
@@ -84,7 +84,9 @@ class GetRouterOutlet extends RouterOutlet<GetDelegate, RouteDecoder> {
required
String
initialRoute
,
Iterable
<
GetPage
>
Function
(
Iterable
<
GetPage
>
afterAnchor
)?
filterPages
,
GetDelegate
?
delegate
,
String
?
restorationScopeId
,
})
:
this
.
pickPages
(
restorationScopeId:
restorationScopeId
,
pickPages:
(
config
)
{
Iterable
<
GetPage
<
dynamic
>>
ret
;
if
(
anchorRoute
==
null
)
{
...
...
@@ -114,6 +116,7 @@ class GetRouterOutlet extends RouterOutlet<GetDelegate, RouteDecoder> {
GetPage
Function
(
GetDelegate
delegate
)?
emptyPage
,
required
Iterable
<
GetPage
>
Function
(
RouteDecoder
currentNavStack
)
pickPages
,
bool
Function
(
Route
<
dynamic
>,
dynamic
)?
onPopPage
,
String
?
restorationScopeId
,
GlobalKey
<
NavigatorState
>?
navigatorKey
,
GetDelegate
?
delegate
,
})
:
super
(
...
...
@@ -125,6 +128,7 @@ class GetRouterOutlet extends RouterOutlet<GetDelegate, RouteDecoder> {
if
(
pageRes
.
isNotEmpty
)
{
return
GetNavigator
(
restorationScopeId:
restorationScopeId
,
onPopPage:
onPopPage
??
(
route
,
result
)
{
final
didPop
=
route
.
didPop
(
result
);
...
...
Please
register
or
login
to post a comment