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-11-19 12:46:05 -0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
4d94856c257c35aa4babcd187b3310713dd70597
4d94856c
1 parent
31b3131d
Complementing didReplace
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
lib/get_navigation/src/routes/observers/route_observer.dart
lib/get_navigation/src/routes/observers/route_observer.dart
View file @
4d94856
...
...
@@ -167,6 +167,8 @@ class GetObserver extends NavigatorObserver {
final
newName
=
_extractRouteName
(
newRoute
);
final
oldName
=
_extractRouteName
(
oldRoute
);
final
currentRoute
=
_RouteData
.
ofRoute
(
oldRoute
);
Get
.
log
(
"REPLACE ROUTE
$oldName
"
);
Get
.
log
(
"NEW ROUTE
$newName
"
);
...
...
@@ -182,9 +184,9 @@ class GetObserver extends NavigatorObserver {
value
.
isBack
=
false
;
value
.
removed
=
''
;
value
.
previous
=
'
$oldName
'
;
value
.
isSnackbar
=
false
;
value
.
isBottomSheet
=
false
;
value
.
isDialog
=
false
;
value
.
isSnackbar
=
currentRoute
.
isSnackbar
?
false
:
value
.
isSnackbar
;
value
.
isBottomSheet
=
currentRoute
.
isBottomSheet
?
false
:
value
.
isBottomSheet
;
value
.
isDialog
=
currentRoute
.
isDialog
?
false
:
value
.
isDialog
;
});
routing
?.
call
(
_routeSend
);
...
...
Please
register
or
login
to post a comment