Calculate Available Item Count
fun CalculateAvailableItemCount(itemSize: Dp, itemPadding: Dp, direction: DpQualifier = DpQualifier.HEIGHT, modifier: Modifier = Modifier, onResult: (count: Int) -> Unit)
EN Calculates the maximum number of items that can fit in a Composable container.
PT Calcula o número máximo de itens que cabem em um contêiner Composável.
Parameters
item Size
The size (width or height) of an item.
item Padding
The total padding (in Dp) around each item (e.g., if there is 2dp on the sides, the padding is 4dp).
direction
The container dimension to be used for the calculation.
on Result
Callback that returns the calculated item count.