Farid Benhaimoud
08/26/2023, 2:13 PM> Task :shared:compileKotlinIosX64
I get this warning
warning: Named arguments in composable function types are deprecated. This will become an error in Kotlin 2.0
Why would this be the case? (edited)Arjan van Wieringen
08/26/2023, 3:56 PMjw
08/26/2023, 5:23 PMArjan van Wieringen
08/26/2023, 6:35 PMPablichjenkov
08/27/2023, 9:12 PMjw
08/27/2023, 9:14 PMjw
08/27/2023, 9:15 PMPablichjenkov
08/27/2023, 11:00 PMVlad
08/28/2023, 8:17 AMText(
// Doing it this way is deprecated and won't build since Kotlin 2.0?
modifier = Modifier,
text = text,
fontSize = textFontSize,
fontWeight = textFontWeight,
color = textColor,
maxLines = 1,
overflow = TextOverflow.Ellipsis
)
jw
08/28/2023, 10:36 AMjw
08/28/2023, 10:36 AMVlad
08/28/2023, 10:42 AMScaffold { paddingValues: PaddingValues ->
}
So the the paddingValues: PaddingValues ->
will be removed? We will have to use only it
?jw
08/28/2023, 10:43 AMVlad
08/28/2023, 10:49 AM@Composable
fun test() {
someComposable.invoke("param value")
}
val someComposable: @Composable (someParam1: String) -> Unit = { myImplementationNameOfParam1: String ->
// empty
}
But I can't add named parameters for the someComposable.invoke()
even with Kotlin 1.8.21jw
08/28/2023, 11:09 AMVlad
08/28/2023, 11:11 AMjw
08/28/2023, 11:12 AMArjan van Wieringen
08/28/2023, 1:07 PMPablichjenkov
08/28/2023, 1:49 PM