Hi all, how do I move the text “Blog” to the middl...
# compose
b
Hi all, how do I move the text “Blog” to the middle of this white box?
k
Copy code
horizontalArrangement = Arrangement.Center
b
inside the Row?
I tried that before and now, didn’t work
trying to get it like this
with the rounded corners
l
Instead of Row, can you can use Box and set
contentAlignment
as
Center
? For Row, you probably need both
horizontalArrangement
and
verticalAlignment
to be centered.
k
That's the bottom padding on your row. Make top and bottom paddings use the same value, let's say 36.dp.
b
thanks guys, it worked