skip to Main Content

Android Studio – Unsupported [References to variables aren't supported yet] in android jetpack compose

I want to use reference operator like onClick = ::onClose in below code @Composable fun HeaderIcons(onClose: () -> Unit) { ConstraintLayout( modifier = Modifier .fillMaxWidth() .wrapContentHeight() ) { IconButton( onClick = (::onClose)() ) { Image(imageVector = ImageVector.vectorResource(id = R.drawable.ic_close), contentDescription…

VIEW QUESTION
Back To Top
Search