Geert
modifier = Modifier .then(Modifier.padding(it)) .then(Modifier.fillMaxSize())
modifier = Modifier.padding(it).fillMaxSize()
iamthevoid
then
yousefa2
.then
Modifier.padding
Rob Meeuwisse
@Composable fun MyButton( onClick: () -> Unit, caption: String, modifier: Modifier = Modifier, ) { Button( onClick = onClick, modifier = Modifier .requiredHeight(48.dp) .then(modifier) // allows the caller to override our default height ) { Text(caption) } }
modifier = modifier.requiredHeight(48.dp) // the caller's requiredHeight modifier will be ignored
A modern programming language that makes developers happier.