📌  相关文章
📜  RenderBox 未布置:RenderRepaintBoundary#5141b relayoutBoundary=up5 NEEDS-PAINT 'package:flutter src rendering box.dart': package:flutter ... rendering box.dart:1 Failed assertion: line 1930 pos 12: 'hasSize' - Dart Code例子

📅  最后修改于: 2022-03-11 14:48:04.048000             🧑  作者: Mango

代码示例2
RenderBox was not laid out: RenderRepaintBoundary#5141b relayoutBoundary=up5 NEEDS-PAINT 'package:flutter/src/rendering/box.dart': package:flutter/…/rendering/box.dart:1 Failed assertion: line 1930 pos 12: 'hasSize'

You're trying to use ListView.builder in a FutureBuilder which has no sizes in a Column, so you need to constrain it somehow – either with SizedBox(height: 300, child: ListView.builder()) or with Expanded widget

Check out this article https://flutter.dev/docs/development/ui/layout/constraints