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
Fiercest
2020-10-06 09:31:10 -0400
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
79baf57702abb68a00aa825fb445cf856d379b5b
79baf577
1 parent
a378e5eb
Fix named route erroring when route does not exist
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
0 deletions
packages/get_navigation/lib/src/root/root_widget.dart
packages/get_navigation/lib/src/root/root_widget.dart
View file @
79baf57
...
...
@@ -161,6 +161,27 @@ class GetMaterialApp extends StatelessWidget {
final
match
=
Get
.
routeTree
.
matchRoute
(
name
);
Get
.
parameters
=
match
?.
parameters
;
//Route can be nullable, just pass the initial route
if
(
match
?.
route
==
null
)
{
return
[
GetPageRoute
(
page:
unknownRoute
.
page
,
parameter:
unknownRoute
.
parameter
,
settings:
RouteSettings
(
name:
name
,
arguments:
null
),
curve:
unknownRoute
.
curve
,
opaque:
unknownRoute
.
opaque
,
customTransition:
unknownRoute
.
customTransition
,
binding:
unknownRoute
.
binding
,
bindings:
unknownRoute
.
bindings
,
transitionDuration:
(
unknownRoute
.
transitionDuration
??
Get
.
defaultTransitionDuration
),
transition:
unknownRoute
.
transition
,
popGesture:
unknownRoute
.
popGesture
,
fullscreenDialog:
unknownRoute
.
fullscreenDialog
,
)
];
}
return
[
GetPageRoute
(
page:
match
.
route
.
page
,
...
...
Please
register
or
login
to post a comment