https://kotlinlang.org logo
#compose
Title
# compose
a

allan.conda

05/28/2020, 6:08 AM
Hi, I’m new here and in learning compose. 👋 I’m trying to append to a list outside the
@Composable
function using
LiveData#observeAsState
. and modify the list-order internally for rendering (drag-reorder ux), but I can’t get it to work; I guess I lack understanding about
MutableState
. Any ideas? The new list doesn’t update the state 😞
Additional info: I’m using
FlowRow
to render the list. Another issue: when trying to update the order, the view flickers back to the initial state for a millisecond; I’m guessing it has something to do with the mutableState as well. Still thinking how to get around that for a smooth experience.
4 Views