Container can not set to expansion.

Widgets & Design

Hello team,

Need your help.
I have this component as child for the listview. We have not set the height and width for the first container of the component.

Now the issue is, when i'm trying to add the container inside this component with out giving height, then it is not showing the component in test mode. Not generating listview elements.

In our requirement we want grid view (responsive grid view custom widget) to be added to the layout without giving height to it's parent container. It should grow dynamically as the data in grid increases. After run that scrollbar should not be visible. and it's height should adjust according to the content. What is the best way to get this done?

What have you tried so far?

I have tried giving dynamic but hardcoded values forthe gridview's parent container. BUt ideally don't want to hardcode this.

Did you check FlutterFlow's Documentation for this topic?
No
2