Closed seasonyuu closed 5 years ago
在 extended.NestedScrollView 中设置了 controller 之后,调用 controller.jumpTo(offset),如果 offset 超过了 headerSliverBuilder 定义的 expandedHeight,则只会滚动到 expandedHeight,不会继续去操作 body 中的滚动。
extended.NestedScrollView
controller
controller.jumpTo(offset)
offset
headerSliverBuilder
expandedHeight
且由于你的库中,对 body 中的控件设置了 controller,外部也已经不能再设置别的 controller 来进行控制了。
这是官方代码。。我只是解决三个问题。。你也可以控制body里面的control。办法。我在群里讲过
加群我让小伙伴告诉你做法
在
extended.NestedScrollView
中设置了controller
之后,调用controller.jumpTo(offset)
,如果offset
超过了headerSliverBuilder
定义的expandedHeight
,则只会滚动到expandedHeight
,不会继续去操作 body 中的滚动。且由于你的库中,对 body 中的控件设置了
controller
,外部也已经不能再设置别的controller
来进行控制了。