flutter - 如何在 ExpansionPanelList 中添加 ImplicitlyAnimatedReorderableList (Reordareble)?
问题描述
我正在使用 ImplicitlyAnimatedReorderableList (implicitly_animated_reorderable_list: ^0.2.3):https ://pub.dev/packages/implicitly_animated_reorderable_list
面临的问题:
════════ Exception caught by rendering library ═════════════════════════════════════════════════════
The following assertion was thrown during performResize():
Vertical viewport was given unbounded height.
Viewports expand in the scrolling direction to fill their container. In this case, a vertical viewport was given an unlimited amount of vertical space in which to expand. This situation typically happens when a scrollable widget is nested inside another scrollable widget.
If this widget is always nested in a scrollable widget there is no need to use a viewport because there will always be enough vertical space for the children. In this case, consider using a Column instead. Otherwise, consider using the "shrinkWrap" property (or a ShrinkWrappingViewport) to size the height of the viewport to the sum of the heights of its children.
════════ Exception caught by rendering library ═════════════════════════════════════════════════════
RenderBox was not laid out: RenderViewport#ea59f NEEDS-LAYOUT NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE
'package:flutter/src/rendering/box.dart':
Failed assertion: line 1713 pos 12: 'hasSize'
解决方案
推荐阅读
- r - 用于保留最后一列的函数
- rust - 从函数参数实现具有生命周期限制的切片特征
- javascript - 带有基于依赖的迭代器的 Lodash `groupBy`
- python - 需要将数据框中的对象 ID 列转换为日期
- c# - 如何根据其中标签文本的长度分配 ListView 的 HeighRequest?
- flutter - 在flutter中到这个页面时刷新页面数据
- ffmpeg - FFMPEG 存储方法:分隔字段?
- javascript - Javascript,使用 if 语句更改元素的颜色
- ios - Flutter iOS 运行错误:无法解析回调缓存,中止恢复
- c# - 如何检查字符串是否包含某个单词,然后删除该单词?