I have in my body a tab then a column and in it I call to build a dynamic list of card using the another widget class. All seems to be working fine but I am getting this error.
The following message was thrown during layout:
I/flutter ( 5090): A RenderFlex overflowed by 115 pixels on the bottom.
The issue is that the list is not able to scroll despite me wrapping it into a flexible widget. Here is the code snippet which builds the the list.I have also enable physics: AlwaysScrollableScrollPhysics(), yet the same issue. I know if I fix a particular height it will work but I dont want to to do that cause that defeats the whole idea.
Widget buildDynamicList(BuildContext context) {
return new Flexible(
//decoration: new BoxDecoration(border: new Border.all(width: 2.0)),
//height:double.infinity,
//fit: FlexFit.loose ,
child: ListView.builder(
physics: AlwaysScrollableScrollPhysics(),
shrinkWrap: true,
itemCount: vehicles.length,
itemBuilder: (BuildContext ctxt, int index) {
return Row(
mainAxisSize: MainAxisSize.max,
//mainAxisSize: MainAxisSize.max,
children: <Widget>[
RouteTile(index: index)
// expansionConfigurableRouteTile(ctxt, index),
],
);
}
)
);
}