Skip to content
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

[Bug]: 鸿蒙NEXT Bate5返回键无法退出应用 #2123

Open
znyang opened this issue Aug 29, 2024 · 1 comment
Open

[Bug]: 鸿蒙NEXT Bate5返回键无法退出应用 #2123

znyang opened this issue Aug 29, 2024 · 1 comment

Comments

@znyang
Copy link

znyang commented Aug 29, 2024

请描述遇到的问题,以及您所期望的正确的结果

在主页面无法继续返回键退出应用

请说明如何操作会遇到上述问题

使用4.6.3版本的example工程
进入主页后,点返回,不会退出应用

在下面填入关键复现代码

复现的平台

Both

Flutter SDK版本

https://gitee.com/openharmony-sig/flutter_flutter/tree/dev

FlutterBoost版本

4.6.3

是否延迟初始化FlutterBoost

No

解决方案

看断点是有走到EntryPage.onBackPress().
但是默认返回true,不会往外跳
可能的处理方式 FlutterBoost的onBackPressed给响应是否拦截了或者能取到页面栈数量

@znyang
Copy link
Author

znyang commented Aug 29, 2024

复现的平台:鸿蒙端

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant