简体   繁体   English

在叠加层内颤动可滚动列表

[英]Flutter scrollable list inside overlay

My question is similar to this How to make my page scrollable when i show overlay element, that have too many items in flutter?我的问题类似于当我显示覆盖元素时如何使我的页面可滚动,其中有太多项目在颤动? but it has no answers so I'll try to ask as well:但它没有答案,所以我也会试着问:

I have an Overlay showing a list of questions using ListView.我有一个叠加显示使用 ListView 的问题列表。 The list of questions is long and I need to enable scrolling inside the Overlay.问题列表很长,我需要在叠加层启用滚动。

Now it's static and part of it disappears at the bottom of the mobile device.现在它是静态的,它的一部分消失在移动设备的底部。

Why is not just scrollable (since the list inside the Overlay is inside a ListView) and is there a way to make it scrollable?为什么不只是可滚动(因为 Overlay 内的列表在 ListView 内)并且有办法使其可滚动?

Thanks in advance for any help!在此先感谢您的帮助!

UPDATE (SOLVED) :更新(已解决):

The problem was that the ListView widget is inside a Positioned widget and the top , left , bottom and width values (in my case) need to be set in order for the content to be scrollable.问题是ListView小部件位于Positioned小部件内,需要设置topleftbottomwidth值(在我的情况下)以使内容可滚动。

问题是ListView小部件位于Positioned小部件内,需要设置topleftbottomwidth值(在我的情况下)以使内容可滚动。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM