How to avoid tinting Icon with painterResource().It paints my vector in Black

The Icon applies a default tint based on LocalContentColor.current that is Black by default.

Use tint= Color.Unspecified to avoid it:

Icon(
     painter = painterResource(id = R.drawable.ic_google_logo),
     contentDescription = "Google Button",
     tint= Color.Unspecified
)

The other option is to use an Image instead of an Icon.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)