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
liasica
2021-07-23 11:26:41 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Committed by
GitHub
2021-07-23 11:26:41 +0800
Commit
e49c51fe9238cf025342cee970bed79ed0a19dee
e49c51fe
1 parent
31cce1f0
Fix multiple middlewares redirect not working.
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
lib/get_navigation/src/routes/route_middleware.dart
lib/get_navigation/src/routes/route_middleware.dart
View file @
e49c51f
...
...
@@ -145,12 +145,13 @@ class MiddlewareRunner {
RouteSettings
?
runRedirect
(
String
?
route
)
{
RouteSettings
?
to
;
_getMiddlewares
().
forEach
((
element
)
{
for
(
final
element
in
_getMiddlewares
()
)
{
to
=
element
.
redirect
(
route
);
});
if
(
to
!=
null
)
{
Get
.
log
(
'Redirect to
$to
'
)
;
break
;
}
}
Get
.
log
(
'Redirect to
$to
'
);
return
to
;
}
...
...
Please
register
or
login
to post a comment