I define a val modifier with height(30.dp), then I pass it with modifier.height(5.dp) to Spacer function.
I think the final height of Spacer should be 5.dp because I have overwritten the height of val modifier.
It seems that the height of Spacer isn't 5.dp, what's wrong with my code?
Code A
val modifier = Modifier.fillMaxWidth().height(30.dp)
Spacer(modifier = modifier.height(5.dp))

