alibaba / alibaba/flutter_boost
[Bug]: iOS原生跳转Flutter的H5界面含有上传文件Choose File(input type file),选择文件后flutter界面被pop卡死
- Dominant language
- Dart
- Stars
- 7.2k
- Forks
- 1.3k
- PR merge metrics
- No merged PRs in 30d
Description
### 请描述遇到的问题,以及您所期望的正确的结果
flutterModule项目接入flutter_boost后,iOS原生跳转flutter界面(ToolPage),flutter界面(ToolPage)加载H5,H5里含有上传文件按钮,点击上传文件按钮选择文件后,flutter界面被pop释放界面卡死
https://github.com/user-attachments/assets/351a1fd3-d817-4b72-8e3e-5901b233187e
### 请说明如何操作会遇到上述问题
含有选择文件的H5界面 选择文件->Choose File后 flutter界面被pop界面卡死 ToolPage执行了dispose方法
### 在下面填入关键复现代码
1.在FlutterModule项目集成了flutter_boost 加载H5
```
.loadFlutterAsset("assets/index.html");
```
2.Flutter 代码

3.H5界面文件
[index.html](https://github.com/user-attachments/files/24932573/index.html)
### 复现的平台
iOS
### Flutter SDK版本
3.29.1
### FlutterBoost版本
5.0.2
### 是否延迟初始化FlutterBoost
No
### 解决方案
1.移除flutterBoost 使用原生的flutter路由就正常了
2.新建了flutter Application项目测试也是正常
3.android正常
Contributor guide
No contributing guide indexed for this repository
Research direction
Reproduce the issue in the FlutterModule setup using flutter_boost 5.0.2 on iOS: load assets/index.html with loadFlutterAsset, open ToolPage, and choose a file from the H5 Choose File control. Inspect the FlutterBoost/native iOS navigation and ToolPage dispose path after selection. Done means the Flutter page no longer pops or becomes stuck, while the native Flutter route and Android behavior remain unaffected.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- dart, flutter, ios
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 28/100