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

alorma

02/25/2021, 2:59 PM
One question... setting a navigationIcon` on
TopBar
shows the arrow in a really strange position...is it intended?
Copy code
Scaffold(
        topBar = {
            TopAppBar(
                navigationIcon = { Icon(
                    imageVector = Icons.Default.ArrowBack,
                    contentDescription = "back"
                ) },
                title = { Text(text = "Puppy ${puppyId.value}") },
                backgroundColor = MaterialTheme.colors.primary,
            )
        }) {

    }
s

Se7eN

02/25/2021, 3:10 PM
You're supposed to use
IconButton
for the right position
2
Or add some padding yourself
a

alorma

02/25/2021, 4:04 PM
Thks,
IconButton
works perfect
👍 2
3 Views