https://kotlinlang.org logo
#compose-desktop
Title
# compose-desktop
z

Zoff

11/08/2023, 7:26 PM
i am still struggeling with my chat app. the view where messages are displayed in Column with with LazyColumn. but i have troubles with the component flickering and updating at strange times. i can't find any good howtos or example for a scroll list with many text components and adding items to it and removing items. or maybe even how to manually control when the component actually redraws. any idea where i can find such info? i am asking here and not in #compose because its different on android.
z

Zach Klippenstein (he/him) [MOD]

11/08/2023, 8:09 PM
If you’re seeing glitchy behavior on desktop but not Android, please file bugs to compose desktop
s

Sean Proctor

11/09/2023, 12:06 AM
Some issues I ran into: make sure to set a key, and never have a column with 0 height in a LazyColumn when loading data. Some more specifics might help someone respond more constructively. I've written a desktop app (MUD client) that can lazily draw thousands of lines of text and it's quite responsive. I would look into the amount of work that you're doing for each frame or if you have too many recompositions.
z

Zoff

11/09/2023, 6:27 AM
@Sean Proctor is it open source? if so can you link to the repo please?
2 Views