@Composable
fun LocalContentColor02() {
CompositionLocalProvider(LocalContentAlpha provides 1.0f) {
Icon(imageVector = Icons.Filled.Favorite, contentDescription ="" )
}
}
@Composable
fun LocalContentColor03() {
CompositionLocalProvider(LocalContentAlpha provides 0.5f) {
Icon(imageVector = Icons.Filled.Favorite, contentDescription ="" )
}
}
@Composable
fun LocalContentColor04() {
CompositionLocalProvider(LocalContentAlpha provides 0.0f) {
Icon(imageVector = Icons.Filled.Favorite, contentDescription ="" )
}
}
@Composable
fun LocalContentColor05() {
Icon(imageVector = Icons.Filled.Favorite, tint = Color.Blue ,contentDescription ="")
}
LocalContentAlpha的使用
于 2024-08-30 16:01:00 首次发布