-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
生命周期监听器RouteAware无法监听 #1522
Comments
@Keanyuan 你在使用原生 Navigator.push路由的时候,给路由带一个参数 settings 即可,代码如下
|
Unhandled Exception: 'package:flutter/src/widgets/navigator.dart': Failed assertion: line 4564 pos 12: '!_debugLocked': is not true. |
@xujinping |
从日志看错误和本问题没啥关联,检查下代码吧 |
感谢问题解决 attach 重新reload可以了 |
版本:v3.0-preview.16
在使用flutter boost时发现在flutterContainer容器中通过Navigator.push(context, MaterialPageRoute(builder: (_) => child))方式跳转的页面
A 页面----Navigator.push--->B页面
现象:
GlobalPageVisibilityObserver 无法监听到onPagePush
B页面 --Navigator.pop-> A页面
现象:
GlobalPageVisibilityObserver 无法监听到onPagePop
在A页面自定义RouteAware进行监听
现象:
didPush可以触发
A 页面----Navigator.push--->B页面
didPushNext 无法监听到
B页面 --Navigator.pop-> A页面
didPopNext无法监听到
请问这种情况我该如何处理????
The text was updated successfully, but these errors were encountered: