https://kotlinlang.org logo
#compose
Title
# compose
s

Shivam Sethi

02/27/2021, 5:51 AM
Hello Composers, I have a topbar composable where I am using Row as a composable content, I am not able to align the text( title of appbar) to center vertically in row, I have set vertical alignment of Row to center vertically. It centers as expected when the icon (back arrow) appears but goes to default alignment top when icon is not there.
a

alorma

02/27/2021, 7:10 AM
Just use
navigationIcon
and use the content as a simbler
Text
a

Albert Chang

02/27/2021, 7:28 AM
You need to add
fillMaxHeight()
to your `Row`’s modifier.
s

Shivam Sethi

02/27/2021, 8:09 AM
oh, correct Thanks a lot.
2 Views