Vertical grid with different cells in Compose

There was a slightly interesting question: we need to make something like a vertical grid, without a fixed number of columns and clickable cells (available for selection) that adapt to the size of the text. I show something approximate in the screenshot, but the length of the text in my case can be different, from 5 to 12 characters, and the cells need to be adapted to the length. It is also not known the number of these cells in advance, since the list with them will come from the backend.

enter image description here

Upvotes: 1

Views: 169

Answers (0)

Related Questions