-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Closed
Description
For Code Location
compose-samples/Jetchat/app/src/main/java/com/example/compose/jetchat/conversation/UserInput.kt
Line 479 in 251fbc6
fun ExtendedSelectorInnerButton( |
val colors = ButtonDefaults.buttonColors(
containerColor = if (selected) MaterialTheme.colorScheme.onSurface.copy(alpha = 0.08f)
else Color.Transparent,
disabledContainerColor = Color.Transparent,
contentColor = if (selected) MaterialTheme.colorScheme.onSurface
else MaterialTheme.colorScheme.onSurface,
disabledContentColor = MaterialTheme.colorScheme.onSurface.copy(alpha = 0.74f)
)
Description:- In the ButtonDefaults.buttonColors composable contentColor is having no use of the if-else condition because the condition provides the same value to contentColor.
Metadata
Metadata
Assignees
Labels
No labels