crossAxisSpacing
CrossAxisSpacing is a layout property used in two-dimensional grid-like layouts to define the space between items along the cross axis. The cross axis is perpendicular to the grid’s main scrolling direction. In typical vertical grids, the cross axis runs horizontally, so crossAxisSpacing determines the horizontal gap between adjacent columns; in grids that scroll horizontally, it controls the vertical gap between rows.
In Flutter and similar UI frameworks, crossAxisSpacing is exposed as part of grid delegates such as SliverGridDelegateWithFixedCrossAxisCount
CrossAxisSpacing is typically paired with mainAxisSpacing, which controls the gap along the main axis (between rows
Example: a grid with three columns, crossAxisSpacing of 8.0, and mainAxisSpacing of 12.0 will feature 8-point
Related concepts include CSS grid column-gap or grid-gap, which serve a similar role in web layout. Outer