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
Eduardo Florence
2020-12-29 20:06:33 -0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
879a4f22867e116b4710599b2fb11b1694c7dbaf
879a4f22
1 parent
835d637f
Set Get.Parameter after runOnPageCalled
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
lib/get_navigation/src/routes/route_middleware.dart
lib/get_navigation/src/routes/route_middleware.dart
View file @
879a4f2
...
...
@@ -206,7 +206,6 @@ class PageRedirect {
/// check if redirect is needed
bool
needRecheck
()
{
final
match
=
Get
.
routeTree
.
matchRoute
(
settings
.
name
);
Get
.
parameters
=
match
?.
parameters
;
// No Match found
if
(
match
?.
route
==
null
)
{
...
...
@@ -216,6 +215,7 @@ class PageRedirect {
final
runner
=
MiddlewareRunner
(
match
.
route
.
middlewares
);
route
=
runner
.
runOnPageCalled
(
match
.
route
);
Get
.
parameters
=
route
?.
parameter
;
// No middlewares found return match.
if
(
match
.
route
.
middlewares
==
null
||
match
.
route
.
middlewares
.
isEmpty
)
{
...
...
Please
register
or
login
to post a comment