Dirk Hoffmann

    Dirk Hoffmann

    1 year ago
    after upgrading lib versions I get weird compiler error on
    Icon(Icons.Filled...)
    kotlin 1.4.21-2 compose 0.3.0-build143
    import androidx.compose.material.Icon
    import androidx.compose.material.IconButton
    import androidx.compose.material.icons.Icons
    
    ...
    
            IconButton(onClick = { /* doSomething() */ }) {
                Icon(Icons.Filled.Lock)
            }
    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

    1 year ago
    Needs a content description now
    See the signatures
    c

    Cedrick Cooke

    1 year ago
    Is there an equivalent of
    importantForAccessibility="no"
    here?
    k

    Kirill Grouchnikov

    1 year ago
    Better ask as a separate post in #compose