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

滚动冲突问题 #26

Closed
a27919478 opened this issue Jul 12, 2021 · 12 comments
Closed

滚动冲突问题 #26

a27919478 opened this issue Jul 12, 2021 · 12 comments

Comments

@a27919478
Copy link

c5ee86f12585396303ade47720be5d9d.mp4

大佬又遇到这个问题吗?
就是waterfall_flow和extended_nested_scroll_view一起使用再往上滚动的时候可能会出现无法滚上去(或者不流畅)的BUG

@a27919478
Copy link
Author

image
这个是代码,我在你的example稍微调整了一下测试的

@zmtzawqlp
Copy link
Member

不要乱用 shrikwrap

@a27919478
Copy link
Author

shrinkWrap设置为false 也是会出现的

@zmtzawqlp
Copy link
Member

提供最小的能重现问题的demo

@a27919478
Copy link
Author

@zmtzawqlp
Copy link
Member

别用 SliverOverlapAbsorber,ExtendedNestedScrollView 库就是为了解决滚动的一些问题的

@a27919478
Copy link
Author

别用 SliverOverlapAbsorber,ExtendedNestedScrollView 库就是为了解决滚动的一些问题的

我去掉了也是会有问题的,你可以用我的DEMO试试

@zmtzawqlp
Copy link
Member

dynamic_pinned_header_height.dart.zip

不能重现,还有别乱设置,pinnedHeaderSliverHeightBuilder 好好看看改之后的,还有 不知道为啥你要设置
physics: const NeverScrollableScrollPhysics(), 你理解这个的意义吗

@a27919478
Copy link
Author

a27919478 commented Jul 13, 2021

不能重现,还有别乱设置,pinnedHeaderSliverHeightBuilder 好好看看改之后的,还有 不知道为啥你要设置
physics: const NeverScrollableScrollPhysics(), 你理解这个的意义吗

感谢回答,不好意思,这个DEMO写的有点问题,
“physics: const NeverScrollableScrollPhysics(),”这个参数只是当时我改你写的example里面代码测试用的,但是并不会影响最终结果
dynamic_pinned_header_height.dart.zip
image
其实只要调整底部子view的这个就能重现这个问题

这是最新代码,可以仔细看看子view列表顶部出现了拉扯的波纹效果
https://user-images.githubusercontent.com/19726808/125437613-b16dadd4-e88c-43fe-9369-8f03da67c916.mp4

这是我的Flutter版本:

Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 2.2.3, on macOS 11.4 20F71 darwin-x64, locale
    zh-Hans-HK)
[!] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
    ✗ Android license status unknown.
      Run `flutter doctor --android-licenses` to accept the SDK licenses.
      See https://flutter.dev/docs/get-started/install/macos#android-setup for
      more details.
[!] Xcode - develop for iOS and macOS
    ✗ Xcode 12.0.0 out of date (12.0.1 is recommended).
      Download the latest version or update via the Mac App Store.
    ! CocoaPods 1.9.1 out of date (1.10.0 is recommended).
        CocoaPods is used to retrieve the iOS and macOS platform side's plugin
        code that responds to your plugin usage on the Dart side.
        Without CocoaPods, plugins will not work on iOS or macOS.
        For more info, see https://flutter.dev/platform-plugins
      To upgrade see
      https://guides.cocoapods.org/using/getting-started.html#installation for
      instructions.
[✓] Chrome - develop for the web
[✓] Android Studio (version 4.2)
[✓] VS Code (version 1.55.2)
[✓] Connected device (2 available)

! Doctor found issues in 2 categories.

@zmtzawqlp
Copy link
Member

你没有看我发给你的demo,修改之后的

@zmtzawqlp
Copy link
Member

你直接去群里面问吧,github 图片视频都下载不方便

@a27919478
Copy link
Author

你没有看我发给你的demo,修改之后的

我看过了,也运行过,问题还是会出现

1.我把SliverAppBar的pinned设置成false
2.pinnedHeaderSliverHeightBuilder的高度只有pinnedHeaderHeight
3.这个时候运行app,就会出现这个问题

你直接去群里面问吧,github 图片视频都下载不方便

我昨天有在群里问过这个问题,问了3、4次,好像大家都没有遇到这个问题没人回答我就在github问大佬了,如果能加你的QQ直接向你提问是最好的了,感谢回答。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants