如何在flutter中垂直scrollView的顶部和底部边缘添加模糊效果

发布于 2025-01-18 04:56:00 字数 410 浏览 3 评论 0原文

我正在尝试实现一个内部有多个项目的垂直滚动视图。目前,滚动视图效果很好,但是边缘似乎非常锋利,滚动时的裁剪,

< 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,

enter image description here

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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

咋地 2025-01-25 04:56:00

使Appbar透明,将高程设置为零。在脚手架中,将扩展机构设置为the BodyBehind Appbar至true

Make the appBar transparent, set elevation to zero. In the scaffold, set extendBody and extend bodyBehind appBar to true

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文