in ui/lib/modules/home_page/item_card_layout_grid.dart [30:47]
Widget build(BuildContext context) {
return LayoutGrid(
// set some flexible track sizes based on the crossAxisCount
columnSizes:
crossAxisCount == 3 ? [300.px, 300.px, 300.px] : [300.px, 300.px],
// set all the row sizes to auto (self-sizing height)
rowSizes: crossAxisCount == 3
? const [auto, auto]
: const [auto, auto, auto, auto],
rowGap: 10, // equivalent to mainAxisSpacing
columnGap: 10, // equivalent to crossAxisSpacing
// note: there's no childAspectRatio
children: [
// render all the cards with *automatic child placement*
for (var i = 0; i < items.length; i++) _card(items[i], context),
],
);
}