I want to create a similar view with **Flutter** as we can do it by creating a `UICollectionViewLayout` in iOS .

This is a sample code I am using.
<https://github.com/flutter/flutter/blob/b8a2456737c9645e5f3d7210fba6267f7408486f/dev/integration_tests/flutter_gallery/lib/demo/material/grid_list_demo.dart>

How to achieve this using `GridView` in **Flutter**. If not `GridView`, is there any other way to do it?

[![Dynamic Sizes](https://i.stack.imgur.com/msYt8.png)](https://i.stack.imgur.com/msYt8.png)