https://kotlinlang.org logo
#compose
Title
# compose
c

carbaj0

01/30/2021, 6:52 AM
hi, 👋 😀 why you avoided put a null default in the content description field of Icon, Image ... ? I think that if you want that a field was mandatory, at least it shouldn´t be nullable
Copy code
fun Icon(
    imageVector: ImageVector,
    contentDescription: String? = null,
    modifier: Modifier = Modifier,
    tint: Color = AmbientContentColor.current.copy(alpha = AmbientContentAlpha.current)
) { ... }
c

cb

01/30/2021, 8:34 AM
Just to avoiding repeating @Leland Richardson [G] : https://twitter.com/intelligibabble/status/1355209643614584833
🙏 2
c

carbaj0

01/30/2021, 10:16 AM
👍