[英]Want ListView to allow taps to pass though or start ListView at offset but scroll up to cover image
I'm trying to achieve an effect where:我正在尝试达到以下效果:
I've tried using a Stack and the ListView covering the screen but with a spacer as the first child to expose the image behind it.我尝试使用 Stack 和 ListView 覆盖屏幕,但使用垫片作为第一个子项来暴露其后面的图像。 But this stops touches from passing through.
但这会阻止触摸通过。
It sounds like you'd need to use a CustomScrollView and Slivers.听起来您需要使用 CustomScrollView 和 Slivers。
There's good documentation for both including examples here: https://api.flutter.dev/flutter/material/SliverAppBar-class.html两者都有很好的文档,包括此处的示例: https://api.flutter.dev/flutter/material/SliverAppBar-class.html
https://docs.flutter.dev/development/ui/advanced/slivers https://docs.flutter.dev/development/ui/advanced/slivers
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.