Closed sinadalvand closed 1 year ago
Consider this code, when you drag item can't detect correct item !
LazyColumn( state = state.listState, modifier = Modifier .reorderable(state) .detectReorderAfterLongPress(state) ) { item { ... } item { ... } items(data.value, { it.uid }) { item -> ReorderableItem(state, key = item.uid) { isDragging -> val elevation = animateDpAsState(if (isDragging) 16.dp else 0.dp) Column( modifier = Modifier .shadow(elevation.value) .background(MaterialTheme.colors.surface) ) { ... } } } }
@sinadalvand so what is the solution?
Consider this code, when you drag item can't detect correct item !