You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@Composable
fun DynamicColorIcon() {
// Get the dynamic color from MaterialTheme
val iconColor = MaterialTheme.colorScheme.primary
// Create an icon using the dynamic color
Icon(
imageVector = Icons.Default.Star, // Replace with your icon
contentDescription = "Dynamic Color Icon",
tint = iconColor,
modifier = Modifier.size(48.dp) // Set size as needed
)
}
This makes the icon look consistent for Android users who enabled this feature.
The text was updated successfully, but these errors were encountered: