Thread
#compose
    s

    Sri

    2 years ago
    I was trying to create a row of buttons using the following code.
    @Composable
    fun ButtonRow() {
        Row {
            val padding = Modifier.padding(12.dp)
            Button(onClick = {  }, modifier = padding) {
                Text(text = "Ok")
            }
            Button(onClick = {  }, modifier = padding) {
                Text(text = "Subtract")
            }
        }
    }
    I am not able to center the
    Ok
    text. Any help as to what I have to do to center it would be much appreciated.
    Adam Powell

    Adam Powell

    2 years ago
    It's a bug. Should be fixed next dev release.