Tin Tran
@Composable invocations can only happen from the context of a @Composable function
buildAnnotatedString{ withStyle(SpanStyle(....)){ append(" • ${stringResource(key = "key", defaultValue = "Open now")}") //won't compile } } buildAnnotatedString { append(stringResource(key = "key", defaultValue ="Work time")) //compile }
Jiří Červený
ste
val index = pushStyle(SpanStyle(....)) append(" • ${stringResource(key = "key", defaultValue = "Open now")}") pop(index)
Oleksandr Balan
crossinline
withStyle
A modern programming language that makes developers happier.