Custom Height and width of grid view we can use the property ChildAspectRation of the grid view of Mobile applicaiton.
Syntax
Step-by-Step Implementation
Step 1: Create a New Project in Android Studio (File >new flutter project)
![](https://cdn.365bloggy.com/web/image/1683-21aeba71/image.png?access_token=eb669a9c-edc9-41c2-a54a-d195d809a52f)
Step 2: Adding material package
Import method the runApp method in the main function call first while run the application.
Step 3: Creating a stateless widget
We can create a stateless widget that contains MaterialApp widget,AppBar,etc.
Step 4: Custom Height for Widget in GridView
Step 5: Final code
Step 6: Output of above example
Happy coding!