Zhelyazko Atanasov
03/03/2021, 3:31 PMModifier
passed in as an argument and then adding more modifiers on top of it, e.g.:
fun Info(modifier: Modifier) {
Text(modifier.size(16.dp)
}
Versus having the same case, but using then
to merge the 2 modifiers:
fun Info(modifier: Modifier) {
Text(modifier then Modifier.size(16.dp)
}
Adam Powell
03/03/2021, 3:39 PM2 + 2
vs. 2 + (1 * 2)
Zhelyazko Atanasov
03/03/2021, 3:43 PMthen
?Daniel
03/03/2021, 4:02 PMDaniel
03/03/2021, 4:03 PM