christian.steffensen
12/09/2024, 3:28 PMchristian.steffensen
12/09/2024, 3:29 PMRaed Ghazal
12/09/2024, 7:29 PMTextButton(
contentPadding = PaddingValues(0.dp),
onClick = {
}
) {}
christian.steffensen
12/09/2024, 7:30 PMRaed Ghazal
12/09/2024, 7:32 PMRaed Ghazal
12/09/2024, 7:35 PMStylianos Gakis
12/09/2024, 8:20 PMchristian.steffensen
12/10/2024, 7:24 AMchristian.steffensen
12/10/2024, 7:32 AMColumn(
Modifier
.background(White)
.fillMaxSize()
.padding(horizontal = 24.dp)
.statusBarsPadding()
) {
TextButton({}) { Text(text = "Back") }
Text("Header", style = h1)
}
For example here, the padding will be wrong on the button, so I have to define manual padding for very single composable in my screen instead of just having it defined on the parent layout. Or offset the button manually:
Modifier.offset(x = (-10).dp))