[英]Flutter: I need to make the widgets scrollable so that whenever i'm scrolling with list view they will follow
在 Listview 中添加物理:NeverScrollableScrollPhysics()
Listview(物理:NeverScrollableScrollPhysics(),返回.....;)
遵循這個模式。
如果您希望該小部件在滾動時消失,則需要將Column
包裝在SingleChildScrollView
,您需要將其包裝在 Flxible 中
代碼:
Flexible(
child: SingleChildScrollView(
child: Column(
//your normal code insode Column
根據您的代碼,您可能還需要使ListView
不滾動(如 Rafid 建議的那樣):
Listview( physics: NeverScrollableScrollPhysics()
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.