SingleChildScrollView/Column内的ReorderableListView [英] ReorderableListView inside SingleChildScrollView/Column

查看:95
本文介绍了SingleChildScrollView/Column内的ReorderableListView的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要将可重新排序的列表放在SingleChildScrollView内,但是ReorderableListView()没有像ListView()那样的收缩包装.是否有解决方法可以在不使用过时的未维护软件包的情况下完成此布局?虽然,我还没有测试那些可用的过时软件包,但我不知道它们是否使用不同的小部件构建,或者它们是否仅基于ReorderableListView()构建,否则错误将继续存在.

解决方案

,您可以将 ReorderableListView Expanded 小部件包装在中./p>

I need to put my reorderable list inside SingleChildScrollView, but the ReorderableListView() doesn't have shrink wrap like ListView(). Is there a work around to accomplish this layout without using an outdated unmaintained package? Although, I haven't tested those available outdated packages yet I don't know if they're built using different widgets or they're just building upon ReorderableListView() if so the error will persist.

解决方案

you can wrap your ReorderableListView with Expanded Widget in Column.

这篇关于SingleChildScrollView/Column内的ReorderableListView的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆