如何在flutter中垂直scrollView的顶部和底部边缘添加模糊效果
我正在尝试实现一个内部有多个项目的垂直滚动视图。目前,滚动视图效果很好,但是边缘似乎非常锋利,滚动时的裁剪,
< img src =“ https://i.sstatic.net/lif3p.png” alt =“在此处输入图像说明”>
我需要模糊顶部和底部边缘。
我正在寻找类似于此答案的东西 https://stackoverflow.com/a/61151054/12890791 答案是用于水平滚动。
I'm Trying to implement a vertical Scroll view with multiple items inside. Currently the scroll view works just fine but the edges seems to be very sharp and its cropping like this while scrolling,
instead I need to blur the top and bottom edge.
I'm looking for something similar to this answer https://stackoverflow.com/a/61151054/12890791, but this answer is for horizontal scroll.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
使Appbar透明,将高程设置为零。在脚手架中,将扩展机构设置为the BodyBehind Appbar至true
Make the appBar transparent, set elevation to zero. In the scaffold, set extendBody and extend bodyBehind appBar to true