alibaba / alibaba/flutter_boost

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

Open
#2,123 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Dart
Stars
7.2k
Forks
1.3k
PR merge metrics
No merged PRs in 30d

Description

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

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

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

使用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给响应是否拦截了或者能取到页面栈数量

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the 4.6.3 example flow and the EntryPage.onBackPress() entry point mentioned in the report. Trace how FlutterBoost's onBackPressed response handles the page stack on HarmonyOS NEXT Beta5; done means pressing back on the main page exits the application instead of being intercepted.

Written by the indexing model from the issue text.

Assessment

Tech stack
dart, flutter
Domain
mobile
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.