muhammad369 / ResponsiveGrid_Flutter

Responsive Grid Layout for Flutter
MIT License
88 stars 27 forks source link

Vertical viewport was given unbounded height. #5

Closed easysoft-mobility closed 4 years ago

easysoft-mobility commented 4 years ago

My ResponsiveGridList need to be inside a listview so I get this error:

""Exception caught by rendering library The following assertion was thrown during performResize(): Vertical viewport was given unbounded height."

The usual solution is to add property shrinkWrap=true to the widget but ResponsiveGridList does'nt recognize this property

muhammad369 commented 4 years ago

This exception is thrown because the ResponsiveGridList is a list that has a scroll (unbounded height), so it it can't be placed inside another unbounded height,

For this reason I've implemented the 'scroll' property (from version 1.1.0) which you can set to 'false',so the ResponsiveGridList will be rendered as a Column not a List