修改 Flutter ScrollView 中的滚动行为

发布于 2025-01-13 08:10:35 字数 471 浏览 3 评论 0原文

我在 singleChildScrollView 中遇到问题。下面是我的代码:

return Scaffold(
 body:SingleChildScrollView(
  child:
    Column(
    children:[
    //...
    Container(height:500,child:listview.builder())
      ],
    //...    
    )),
);

我想要的是当 listview.builder 的项目结束时,继续滚动 singleChildScrollView 内的 Column 的子项。或者,我什至无法删除 containerlistview.builder 的父级),它会导致渲染错误。如果问题不清楚,请问我。我会解释一下。请帮忙:(。

I have a problem in singleChildScrollView. Below is my code:

return Scaffold(
 body:SingleChildScrollView(
  child:
    Column(
    children:[
    //...
    Container(height:500,child:listview.builder())
      ],
    //...    
    )),
);

What I want is to keep on scrolling the children of Column inside the singleChildScrollView when the items of listview.builder are ended. Alternatively, I cant even remove the container (the parent of listview.builder) it causes rendering error. If the question in not clear, please ask me. I'll explain. Kindly help :(.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文