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
Ahmed Fwela
2021-05-31 15:19:05 +0200
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
f213292805f254a99b6ccb6aaec4556cbf0a35c5
f2132928
1 parent
322e9738
more comments
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
lib/get_navigation/src/nav2/get_router_delegate.dart
lib/get_navigation/src/nav2/router_outlet.dart
lib/get_navigation/src/nav2/get_router_delegate.dart
View file @
f213292
...
...
@@ -214,7 +214,8 @@ class GetDelegate extends RouterDelegate<GetPage>
}
void
_currentRouteChanged
(
GetPageRoute
route
)
{
//transition?
//is this method useful ?
//transition? -> in router outlet ??
//buildPage? -> in router outlet
}
}
...
...
lib/get_navigation/src/nav2/router_outlet.dart
View file @
f213292
...
...
@@ -89,6 +89,7 @@ class GetRouterOutlet extends RouterOutlet<GetDelegate, GetPage> {
pageBuilder:
(
context
,
rDelegate
,
page
)
{
final
pageRoute
=
rDelegate
.
pageRoutes
[
page
];
if
(
pageRoute
!=
null
)
{
//TODO: transitions go here !
return
pageRoute
.
buildPage
(
context
,
pageRoute
.
animation
,
...
...
@@ -96,7 +97,7 @@ class GetRouterOutlet extends RouterOutlet<GetDelegate, GetPage> {
);
}
/// improve this logic abit
///
TODO:
improve this logic abit
return
(
emptyPage
?.
call
(
rDelegate
)
??
rDelegate
.
notFoundRoute
?.
page
())
??
SizedBox
.
shrink
();
...
...
Please
register
or
login
to post a comment