Having this:
@Preview
@Composable
fun ButtonTest() {
Button(onClick = {}, Modifier.border(1.dp, Color.Red)) {
Text("test")
}
}
produced UI looks like this:
How can I remove white margins at top and bottom?
Having this:
@Preview
@Composable
fun ButtonTest() {
Button(onClick = {}, Modifier.border(1.dp, Color.Red)) {
Text("test")
}
}
produced UI looks like this:
How can I remove white margins at top and bottom?
I found the answer in kotlin community slack archive: https://kotlinlang.slack.com/archives/C01D6HTPATV/p1664901247640999