https://kotlinlang.org logo
#compose
Title
# compose
p

pavi2410

10/04/2020, 8:16 AM
In other words, is it even possible to reset the applied Modifiers? Like in CSS? It can be useful to tweak existing composables components
1
z

Zach Klippenstein (he/him) [MOD]

10/05/2020, 4:58 AM
You can make the modifiers conditional, like anything else. var modifier = Modifier.something() if (condition) modifier = modifier.padding(…) Box(modifier)
2 Views