after upgrading lib versions I get weird compiler error on `Icon(Icons.Filled...)` kotlin 1.4.21-2 c...
d
after upgrading lib versions I get weird compiler error on
Icon(Icons.Filled...)
kotlin 1.4.21-2 compose 0.3.0-build143
Copy code
import androidx.compose.material.Icon
import androidx.compose.material.IconButton
import androidx.compose.material.icons.Icons

...

        IconButton(onClick = { /* doSomething() */ }) {
            Icon(Icons.Filled.Lock)
        }
Copy code
None of the following functions can be called with the arguments supplied: 
public fun Icon(bitmap: ImageBitmap, contentDescription: String?, modifier: Modifier = ..., tint: Color = ...): Unit defined in androidx.compose.material
public fun Icon(painter: Painter, contentDescription: String?, modifier: Modifier = ..., tint: Color = ...): Unit defined in androidx.compose.material
public fun Icon(imageVector: ImageVector, contentDescription: String?, modifier: Modifier = ..., tint: Color = ...): Unit defined in androidx.compose.material
any ideas?
k
Needs a content description now
See the signatures
c
Is there an equivalent of
importantForAccessibility="no"
here?
k
Better ask as a separate post in #compose