Tin Tran
02/18/2022, 5:45 AM@Composable invocations can only happen from the context of a @Composable function
. It wasn’t the case in 1.1.0. Is this expected?
buildAnnotatedString{
withStyle(SpanStyle(....)){
append(" • ${stringResource(key = "key", defaultValue = "Open now")}") //won't compile
}
}
buildAnnotatedString {
append(stringResource(key = "key", defaultValue ="Work time")) //compile
}
Jiří Červený
03/09/2022, 1:09 PMste
03/12/2022, 5:35 PMval index = pushStyle(SpanStyle(....))
append(" • ${stringResource(key = "key", defaultValue = "Open now")}")
pop(index)
Tin Tran
03/14/2022, 2:49 AMOleksandr Balan
03/15/2022, 9:24 AMcrossinline
modifier in withStyle
See https://issuetracker.google.com/issues/219764003
and
https://android-review.googlesource.com/c/platform/frameworks/support/+/2007319