I'm new to jetpack compose. I wanna set different paddings in different conditions.
That's my code.
if(showPadding)
modifier.padding(2.dp, 2.dp, 4.dp, 8.dp)
else
modifier.padding(4.dp, 4.dp, 2.dp, 4.dp)
Text(modifier = modifier, ...)
But the result is not as expected.