GridViewbuildergridDelegate
GridView.builder is a constructor that creates a scrollable, lazily built grid. The gridDelegate parameter specifies how the grid should arrange its tiles. It takes a SliverGridDelegate, an abstract class that describes the layout geometry used during the grid’s layout phase. Concrete implementations determine how many tiles fit in the cross axis and how much space each tile receives.
The two most commonly used delegates are SliverGridDelegateWithFixedCrossAxisCount and SliverGridDelegateWithMaxCrossAxisExtent. The first fixes the number of
GridDelegate is consulted during layout and does not itself create widgets; GridView.builder provides itemBuilder to lazily
Ensure the gridDelegate is supplied to GridView.builder; omitting it leaves the grid without a layout policy.