Answers for "Assertion failed: package:flutter/…/rendering/box.dart:1930 hasSize "RenderBox was not laid out: RenderRepaintBoundary#7e1b3 NEEDS-PAINT"

1

Assertion failed: package:flutter/…/rendering/box.dart:1930 hasSize "RenderBox was not laid out: RenderRepaintBoundary#7e1b3 NEEDS-PAINT

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
Posted by: Guest on August-07-2021

Code answers related to "Assertion failed: package:flutter/…/rendering/box.dart:1930 hasSize "RenderBox was not laid out: RenderRepaintBoundary#7e1b3 NEEDS-PAINT"

Browse Popular Code Answers by Language