Hello here! Recently, I built a KMP library (<htt...
# compose-desktop
g
Hello here! Recently, I built a KMP library (https://github.com/GerardPaligot/kighlighter) which highlight code in a composable
Text
and use
buildAnnotatedString
builder to change the color for all keywords of the programming language. The library work pretty well and if I use it to highlight one times any source code, there is no problem. But now, I would like to use my library to create a presentation. To do that, I have a state to switch in my slides. It works but, sometimes, I don’t know why and randomly,
buildAnnotatedString
don’t apply my color on my
Text
. Maybe a bug in compose ? Any help is welcome! (Record of the bug in thread)
z
Genres.forEach should be genres.fastForEach { genre -> key(genre) {
g
Thanks Gabor. I didn't know this function. But the code in the left of the capture isn't executed (well yes at the right but the bug is at the left). I reproduced the look and fell of AS with a highlight of code snippet.
But the highlight didn't work every time as you can see at the end of the video.