alibaba / alibaba/flutter_boost
[Bug]: iOS 使用PlatformView的页面弹出新的透明弹窗,PlatformView消失
- Dominant language
- Dart
- Stars
- 7.2k
- Forks
- 1.3k
- PR merge metrics
- No merged PRs in 30d
Description
### 请描述遇到的问题,以及您所期望的正确的结果
页面A的子视图使用PlatformView,这时候弹出一个透明页面B,这时候通过透明图层看PlatformView没有显示,但是在没有使用PlatformView的其他页面能正常显示,期望在弹出透明弹窗时PlatformView能正常显示
### 请说明如何操作会遇到上述问题
页面A的子视图使用PlatformView,这时候弹出一个透明页面B,这时候通过透明图层看PlatformView没有显示
### 在下面填入关键复现代码
```
BoostNavigator.instance
.push('name', arguments:{}, withContainer: true, opaque: false);
```
```
var contaierVC: HZFBFlutterViewContainer = HZFBFlutterViewContainer()
contaierVC.setName(options.pageName, uniqueId: options.uniqueId, params: options.arguments,opaque: options.opaque)
contaierVC.modalPresentationStyle = .overFullScreen
contaierVC.view.backgroundColor = UIColor.clear
contaierVC.view?.isOpaque = options.opaque
let navController = UINavigationController(rootViewController: contaierVC)
navController.modalPresentationStyle = .overFullScreen
navController.navigationBar.isHidden = true
topVC.present(navController, animated: isAnimated) {
}
```
### 复现的平台
iOS
### Flutter SDK版本
3.16.9
### FlutterBoost版本
5.0.1
### 是否延迟初始化FlutterBoost
No
### 解决方案
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reproducing the issue with BoostNavigator.instance.push using withContainer: true and opaque: false, then inspect HZFBFlutterViewContainer and the presented UINavigationController configuration shown in the report. Trace how PlatformView rendering behaves across the transparent presentation; done means the PlatformView remains visible through the transparent page on iOS.
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
- 25/100