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)