摘要: 需求 列表展示: 列表项都是同一格式,列表项数据从List里取 解决方案 使用map map源码 Iterable<T> map<T>(T f(E e)) => MappedIterable<E, T>(this, f); 调用map 返回的数据类型为Iterable 注意1: 需要将Iterabl 阅读全文
posted @ 2020-08-19 15:30 shellon 阅读(185) 评论(0) 推荐(0) 编辑
摘要: 问题 Flexible 里用了 Column, 使得高度无法确定 解决方案 将Flexible替换为ConstrainedBox, 并设定maxHeight 代码 ConstrainedBox( constraints: BoxConstraints(maxHeight: 500,, child: 阅读全文
posted @ 2020-08-19 15:13 shellon 阅读(3791) 评论(0) 推荐(0) 编辑