Closed yeswah closed 2 years ago
使用的是最新版 lifecycle: ^0.3.2
Navigator.of(context).popUntil((route) => route.settings.name == "home");
flutter: Page3 LifecycleEvent.inactive flutter: Page3 LifecycleEvent.invisible flutter: Page2 LifecycleEvent.visible flutter: Page2 LifecycleEvent.active flutter: Page2 LifecycleEvent.inactive flutter: Page2 LifecycleEvent.invisible flutter: Page1 LifecycleEvent.visible flutter: Page1 LifecycleEvent.active flutter: Page1 LifecycleEvent.inactive flutter: Page1 LifecycleEvent.invisible flutter: Page3 LifecycleEvent.visible flutter: Page3 LifecycleEvent.active flutter: Page2 LifecycleEvent.visible flutter: Page2 LifecycleEvent.active flutter: Page3 LifecycleEvent.pop flutter: Page2 LifecycleEvent.pop flutter: Page1 LifecycleEvent.pop
好的,我先看下。
还有问题吗?
已经用上了,没问题,谢谢及时处理
使用的是最新版 lifecycle: ^0.3.2
Navigator.of(context).popUntil((route) => route.settings.name == "home");
flutter: Page3 LifecycleEvent.inactive flutter: Page3 LifecycleEvent.invisible flutter: Page2 LifecycleEvent.visible flutter: Page2 LifecycleEvent.active flutter: Page2 LifecycleEvent.inactive flutter: Page2 LifecycleEvent.invisible flutter: Page1 LifecycleEvent.visible flutter: Page1 LifecycleEvent.active flutter: Page1 LifecycleEvent.inactive flutter: Page1 LifecycleEvent.invisible flutter: Page3 LifecycleEvent.visible flutter: Page3 LifecycleEvent.active flutter: Page2 LifecycleEvent.visible flutter: Page2 LifecycleEvent.active flutter: Page3 LifecycleEvent.pop flutter: Page2 LifecycleEvent.pop flutter: Page1 LifecycleEvent.pop