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

从一个非全屏flutterView push一个全屏flutterView,然后 pop出去,非全屏flutterView发生向上偏移 #799

Closed
HaoXianSen opened this issue Jul 27, 2020 · 4 comments

Comments

@HaoXianSen
Copy link

一个横滑的pageController里,其中一页是FlutterView,也就是FLBFlutterViewContainer的view(view上边放的是flutter的CustomScrollView),然后它上边的点击事件进入一个全屏的flutterView,然后pop出来,发现处于pageController上的flutterView 的内容出现了向上的偏移。

这个问题该肿么解决呀?

@qianshou
Copy link

我这边遇到了类似的问题,我是在A页面(原生)中的部分内容是flutter,点击flutter中的内容打开B页面(flutter页面)时,B页面不能全屏显示

@qianshou
Copy link

楼主可以看下这个,我试了可以:#435
在FLBFlutterViewContainer的子类里面,强制视图在viewDidAppear方法里面重绘

  • (void)viewDidAppear:(BOOL)animated{
    [super viewDidAppear:animated];
    [self.view setNeedsLayout];
    [self.view layoutIfNeeded];
    }

@HaoXianSen
Copy link
Author

@qianshou 是的,我也是这样强制重绘解决的

@qianshou
Copy link

qianshou commented Feb 18, 2022 via email

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

3 participants