chenenyu / lifecycle

Lifecycle support for Flutter widgets.
https://pub.dev/packages/lifecycle
Apache License 2.0
50 stars 6 forks source link

从iOS原生页面pop回来,没有触发visible和active事件 #18

Closed xiaochenghua closed 2 years ago

xiaochenghua commented 2 years ago

Xcode 13.1, Flutter 2.2.3

chenenyu commented 2 years ago

还没有测试过和原生嵌套的场景,方便提供一个小体积的demo吗

xiaochenghua commented 2 years ago

抱歉,是我的代码的原因,我在main()方法WidgetsBinding.instance初始化之前使用了LifecycleObserver(),不过可否在LifecycleObserver构造函数前面加一个断言WidgetsBinding.instance==null,这样后续遇到这个问题的能更方便的排除问题。 感谢作者。