https://kotlinlang.org logo
d

Dirk Hoffmann

01/26/2021, 10:36 PM
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

Kirill Grouchnikov

01/26/2021, 10:41 PM
Needs a content description now
See the signatures
c

Cedrick Cooke

01/29/2021, 10:13 PM
Is there an equivalent of
importantForAccessibility="no"
here?
k

Kirill Grouchnikov

01/29/2021, 11:16 PM
Better ask as a separate post in #compose
6 Views