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]: iOS 使用PlatformView的页面弹出新的透明弹窗,PlatformView消失 #2103

Open
dongjianxiong opened this issue Aug 1, 2024 · 1 comment

Comments

@dongjianxiong
Copy link

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

页面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

解决方案

@dongjianxiong
Copy link
Author

HZFBFlutterViewContainer 继承自FBFlutterViewContainer,直接用FBFlutterViewContainer也是一样的问题

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