Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ResponsiveGridList of Equal Height of the tallest Widget #16

Open
tehsunnliu opened this issue Mar 27, 2021 · 3 comments
Open

ResponsiveGridList of Equal Height of the tallest Widget #16

tehsunnliu opened this issue Mar 27, 2021 · 3 comments

Comments

@tehsunnliu
Copy link

tehsunnliu commented Mar 27, 2021

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
Copy link
Owner

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
Copy link
Author

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.

@matteoberla
Copy link

matteoberla commented Nov 22, 2024

Same issue here,
I'm trying to wrap the children in a IntrinsicHeight widget but it's impossible since ResponsiveGridRow expects ResponsiveGridCol as children type.

Any suggestion?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants