Tin Tran
05/21/2021, 3:13 AMIcon . All my Icon turned black when using in a composable and I have to use tint to turn it into the right color. Does anyone else having the same issue?Tin Tran
05/21/2021, 3:15 AMIcon(
painter = painterResource(R.drawable.ic_bullet),
contentDescription = ""
)Tin Tran
05/21/2021, 3:17 AMTin Tran
05/21/2021, 3:18 AMAbhishek Dewan
05/21/2021, 4:57 AMTin Tran
05/21/2021, 5:17 AMTin Tran
05/21/2021, 5:17 AMImage and it worked correctlypatrick
05/21/2021, 8:24 AMTin Tran
05/21/2021, 8:26 AMpatrick
05/21/2021, 8:27 AMTin Tran
05/21/2021, 8:30 AMTin Tran
05/21/2021, 8:31 AMImage and if i need to change the icon color I’ll use Icon and change it’s tintBryan Herbst
05/21/2021, 11:59 AMIcon is specifically designed to always tint your icon with LocalContentColor. From the docs:
Icon component that drawsSounds like you already found it, butusingimageVector, defaulting totint.LocalContentColor
Image is effectively the same without the tinting behavior.