From 1aaeb5b692fec0852070b228caa697ea1180e296 Mon Sep 17 00:00:00 2001 From: chenenyu Date: Wed, 28 Oct 2020 11:57:22 +0800 Subject: [PATCH] Bug fix. --- lib/src/lifecycle_observer.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/lifecycle_observer.dart b/lib/src/lifecycle_observer.dart index bb80341..1e15906 100644 --- a/lib/src/lifecycle_observer.dart +++ b/lib/src/lifecycle_observer.dart @@ -200,7 +200,7 @@ class LifecycleObserver> 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 subscribers = _listeners[route];