Hi I'm trying to update the AdapterList Composable item asynchronously. I put Image as one of the List Item. The image data is downloading from server using coroutine and update the value using state. When I fling the list items, got following error
java.lang.IllegalStateException: Asking for measurement result of unmeasured layout modifier
at androidx.ui.core.LayoutNodeWrapper.getMeasureResult(LayoutNodeWrapper.kt:58)
at androidx.ui.core.LayoutNodeWrapper.getMeasuredSize(LayoutNodeWrapper.kt:48)
at androidx.ui.core.Placeable.getWidth(Placeable.kt:40)
at androidx.ui.core.LayoutNode.getWidth(ComponentNodes.kt:841)
at androidx.ui.foundation.ListState.composeAndMeasureNextItem-BTEqjtU(AdapterList.kt:222)
at androidx.ui.foundation.ListState.consumePendingScroll(AdapterList.kt:151)
at androidx.ui.foundation.ListState.access$consumePendingScroll$3(Unknown Source:0)
at androidx.ui.foundation.ListState$ListMeasureBlocks.measure(AdapterList.kt:277)
at androidx.ui.core.InnerPlaceable.performMeasure(InnerPlaceable.kt:43)
at androidx.ui.core.LayoutNodeWrapper.measure(LayoutNodeWrapper.kt:99)
at androidx.ui.core.DelegatingLayoutNodeWrapper.performMeasure(DelegatingLayoutNodeWrapper.kt:79)
at androidx.ui.core.LayerWrapper.performMeasure(LayerWrapper.kt:52)
at androidx.ui.core.LayoutNodeWrapper.measure(LayoutNodeWrapper.kt:99)
at androidx.ui.core.DelegatingLayoutNodeWrapper.performMeasure(DelegatingLayoutNodeWrapper.kt:79)
at androidx.ui.core.LayoutNodeWrapper.measure(LayoutNodeWrapper.kt:99)
at androidx.ui.core.DelegatingLayoutNodeWrapper.performMeasure(DelegatingLayoutNodeWrapper.kt:79)
at androidx.ui.core.LayoutNodeWrapper.measure(LayoutNodeWrapper.kt:99)
at androidx.ui.core.DelegatingLayoutNodeWrapper.performMeasure(DelegatingLayoutNodeWrapper.kt:79)
at androidx.ui.core.LayoutNodeWrapper.measure(LayoutNodeWrapper.kt:99)
at androidx.ui.core.LayoutNode$measure$2.invoke(ComponentNodes.kt:1177)
at androidx.ui.core.LayoutNode$measure$2.invoke(Unknown Source:0)
at androidx.ui.core.ModelObserver.observeReads(ModelObserver.kt:151)
at androidx.ui.core.AndroidComposeView.observeMeasureModelReads(AndroidOwner.kt:487)
at androidx.ui.core.LayoutNode.measure(ComponentNodes.kt:1176)