I want to use listview in column, but i got a renderingbox error. How can I solved that?
class Test extends StatefulWidget {
const Test({Key? key}) : super(key: key);
@override
State<Test> createState() => _TestState();
}
class _TestState extends State<Test> {
bool active = false;
@override
Widget build(BuildContext context) {
return Column(
children: [
ListView.builder(itemBuilder: (context, index) {
return Text("data");
})
],
);
}
}
Use shrinkWrap: true,
inside ListView.builder