Skip to content

[Discussions] 请问这个库可以解决NestedScrollView+TabBarView的jumpTo(0)问题吗? #136

@Dabbit-Chan

Description

@Dabbit-Chan

Content

https://gist.github.com/Dabbit-Chan/3772e7e8c17752b1b91760618ec79f14

这是一个简单的demo。现在的问题是当A页面滚动超过一屏时置顶按钮出现,然后左滑出现B页面,B页面不应该出现置顶按钮,但我没有办法获取B页面当前的pixels。只能在B页面进行一下滚动,去获取B页面的pixels。不知道用这个库有没有办法解决这种情况?

我有试过在TabControllerindexIsChanging为false后通过PrimaryScrollController.of(context)去获取,结果会出现ScrollController attached to multiple scroll views的报错

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions