Adjust aspect ratio of gridView dynamically so that its children automatically adjust to its height

I have created a component that uses a GridView and it is inside a Container. And I need its items to adjust according to the height of the container.

As seen in the screenshot, if I adjust the value (radius) the height varies but I don't know how to perform an action or calculation to adjust this correctly.

1 reply