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

当onlyOneScrollInBody设置为true的时候,如何获取到所有的innerController呢? #157

Closed
gdmec07120836 opened this issue Aug 5, 2024 · 2 comments

Comments

@gdmec07120836
Copy link

Platforms

Android, iOS

Description

页面使用的是tabview,结构和example/lib/pages/complex/scroll_to_top.dart差不多,但如果像例子那样不设置onlyOneScrollInBody: true,会导致各个tab的刷新状态互相影响,如果设置onlyOneScrollInBody: true,则会导致scrollViewKey.currentState?.innerPosition获取出来的innerController只有当前页的,这种情况需要怎么处理呢?

My code

No response

Try do it

No response

@zmtzawqlp
Copy link
Member

需求是什么,看看合理不,可以完全加一个public 的暴露呢?

@gdmec07120836
Copy link
Author

不需要了,还是要用onlyOneScrollInBody: true的方式,因为false的时候各个tab的innerController会互相影响。不过我发现还有一个问题,就是和ExtendedTabBarView的兼容性不太好,我另外提个issues吧,这个可以关了。

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

2 participants