【发布时间】:2018-02-04 13:20:25
【问题描述】:
我试图使用没有滚动行为的 GridView,我通过将“primary”属性设置为 false 来实现它。通过这样做,我注意到当一个可滚动小部件嵌套到另一个时,卡片阴影会产生这种奇怪的效果。
Note the difference between the shadow of the two cards
所以我尝试使用 SliverGrid 让它工作,但我发现我需要将它包装在 CustomScrollView 或相关的中,这样做我会再次创建阴影效果。有什么方法可以使用 SliverGrid 让我没有滚动行为?
【问题讨论】:
标签: dart flutter flutter-sliver