I would like to know whether this is necessary to use .then() when combining Compose modifiers. Let's consider a simple example.
@Composable
fun TestComposable(
modifier: Modifier = Modifier
) {
// content 1 or 2
}
- Row(modifier = modifier.then(Modifier.fillMaxWidth().height(10.dp))
- Row(modifier = modifier.fillMaxWidth().height(10.dp)
As I understand it, the only drawback of doing it the "2" way, is that we can only concatenate internal modifiers to the passed ones, not the other way around. Am I missing something?