I tried this but weight is not working here. Is there any way to add weight I want to create a number pad from 1 to 9. For this I want to add 1 lazy row with fillMaxWidth and add 3 items with 1 weight each.
@Composable
fun NumberBoardRow(num: List<String>) {
LazyRow(
modifier = Modifier.fillMaxWidth(),
verticalAlignment = Alignment.CenterVertically,
horizontalArrangement = Arrangement.Center
) {
itemsIndexed(num) { num, index ->
NumberButton(modifier = Modifier.weight(1f), number = index, onClick = {})
}
}
}