Hi guys what is recommended way of using `Spacer` ...
# compose
k
Hi guys what is recommended way of using
Spacer
in jetpack compose?
Copy code
Spacer(modifier = Modifier.height(16.dp))
v/s
Copy code
Spacer(modifier = Modifier.preferredHeight(16.dp))
what is the difference between
height
and
preferredHeight
?
s
k
Okkk
f
preferredHeight
is the new
height
.
requiredHeight
was created with that change if I remember correctly
And the difference is that
requiredHeight
ignores size constraints
k
I really appreciate it. @Filip Wiesner