Skip to content

Commit

Permalink
Bug fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
chenenyu committed Oct 28, 2020
1 parent 643472f commit 1aaeb5b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/src/lifecycle_observer.dart
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ class LifecycleObserver<R extends Route<dynamic>> extends NavigatorObserver
/// 发送 event 给最后一个 route
void _sendEventToLastRoute(LifecycleEvent event) {
if (_routes.isEmpty) return;
PageRoute route = _routes.last;
Route route = _routes.last;
if (route != null) {
// 之前的 route 触发 invisible
final Set<LifecycleAware> subscribers = _listeners[route];
Expand Down

0 comments on commit 1aaeb5b

Please sign in to comment.