Bobin
Bobin

Reputation: 435

GridView with fixed size children

I need a grid that contains children of fixed sizes.

GridView expands its children, which is not what I need. The grid should simply size itself according to it's children by setting the crossAxisCount.

My current solution is to use simple columns and rows, but that's so much boilerplate code for just a common widget.

Upvotes: 2

Views: 424

Answers (1)

Seth Samuel
Seth Samuel

Reputation: 355

You will have to do it dynamically, and supply the value of the crossAxisCount dynamically

Upvotes: 0

Related Questions