How to change android jetpack compose bottomAppBar icon tint color?

Smmy Sa picture Smmy Sa · Feb 15, 2021 · Viewed 7.2k times · Source

BottomNavigationBar() can only take the background and contentColor but there is no option for tint color.

Answer

Mohit Suthar picture Mohit Suthar · Jul 15, 2021

If you want to change the tint color of the image then you can use below code

Image(painter = painterResource(R.drawable.ic_arrow_details), contentDescription = "", colorFilter = ColorFilter.tint(Color.Black))

You can use colorFilter properties in Image