muhammad369 / ResponsiveGrid_Flutter

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

ResponsiveGridList of Equal Height of the tallest Widget #16

Open tehsunnliu opened 3 years ago

tehsunnliu commented 3 years ago

Hi I've created a ResponsiveGridList as shown in the image below. Since in my case the height of the widget will vary according to the number of items. I wanted to set all the widget's sizes to the height of the tallest widget so they all look symmetric. Is there any way I can achieve this? I tried setting squareCells = true, however, I get RenderFlex overflowed exception.

Thank you.

Screenshot from 2021-03-27 22-08-30

muhammad369 commented 3 years ago

if i understand you well, that is the default behavior you don't have to set squareCells to true

also I couldn't reproduce the exception either

tehsunnliu commented 3 years ago

Hi Mohamed, Thank you for your reply. An exception occurs when the items in the list go beyond the height of squareCell. I tried placing a listview or singleChildScrollView but this doesn't work. I wanted to know if there is anyway I can stretch the remaining place for example in Order Id: 3 the Card srhinks to wrap its contents. Is it possible to stretch it to take the remaining space? For now, what I've done is fill empty widgets to match the height with the tallest widget.