Gridview with items that have height in pixel

Resolved

I want to display cards with a given height of 250px. One row should contain always 2 cards. The container has a horizontal padding of 16px and item spacing is also 16px. So the width of a card is always 50% - 16px - 8px. Is there any way I can build this? I tried so far:

  • Gridview: I cannot set the height of the card (only aspect ratio)

  • Wrap: I cannot set the width of the card as I cannot calculate 50% - 16px - 8px anywhere

  • Row + Column approach. Does not work whatsoever

Fairly new to this. Any help is appreciated :)

4
4 replies