In need to show genral diloag , in diloog I am using list view builder, while I am using list view builder without declaring height of I am getting render box layout issue
CodePudding user response:
AlertDialog
provides scroll option, You can use scrollable: true,
showDialog(
context: context,
builder: (BuildContext context) => AlertDialog(
scrollable: true,
content: Column(
children: List.generate(223, (int index) {
return ListTile(title: Text("$index"));
}),
),
),
);
CodePudding user response:
Try using Expanded() widget which will allow you to give available space and try also giving shrinkWrap: true in ListView()
CodePudding user response:
Please Wrap List.generate
With Flexible
Widget.