Feri Nagy
06/29/2022, 8:37 AMfillMaxWidth()
to the modifier passed to a composable?
@Composable
fun MyComponent(modifier: Modifier = Modifier) {
Box(modifier = modifier.fillMaxWidth()) {
// ...
}
}
On one hand, it feels like it hurts reusability, on the other it can remove some duplication. WDYT? Valid usage, frowned upon, should be avoided?natario1
06/29/2022, 9:59 AM