Justin Salér
09/07/2023, 10:58 AMFlowRow?
I am using a FlowRow
, but I want to use another component when there is only a single item in the first row of the FlowRow
.Justin Salér
09/07/2023, 11:07 AMLazyGrid
at first, so maybe that is the more correct choice?Marcin Wisniowski
09/07/2023, 1:00 PMJustin Salér
09/07/2023, 3:33 PMBoxWithConstraints
and then I had a formula
cardsPerRow = (parentMaxWidth + spacing)/(width + spacing)
but it didn't work. After looking into the FlowLayout code I think there is a rounding error in the DP to px conversion.
I will look into your suggestion @Marcin Wisniowski, with a completely custom layout for all the logic. Considering how complex the FlowRow code is, I think it will be a challenge to reproduce it and add extra logic, but might learn a lot.Marcin Wisniowski
09/07/2023, 3:53 PM