Merge remote-tracking branch 'refs/remotes/origin/main'
This commit is contained in:
@@ -39,6 +39,7 @@ import androidx.compose.ui.zIndex
|
|||||||
import kotlinx.coroutines.CoroutineScope
|
import kotlinx.coroutines.CoroutineScope
|
||||||
import kotlinx.coroutines.channels.Channel
|
import kotlinx.coroutines.channels.Channel
|
||||||
import kotlinx.coroutines.launch
|
import kotlinx.coroutines.launch
|
||||||
|
import java.util.UUID
|
||||||
|
|
||||||
|
|
||||||
@OptIn(ExperimentalFoundationApi::class)
|
@OptIn(ExperimentalFoundationApi::class)
|
||||||
@@ -65,7 +66,7 @@ fun <T : Any> DraggableGrid(
|
|||||||
horizontalArrangement = Arrangement.spacedBy(16.dp),
|
horizontalArrangement = Arrangement.spacedBy(16.dp),
|
||||||
|
|
||||||
) {
|
) {
|
||||||
itemsIndexed(items, key = { _, item -> item }) { index, item ->
|
itemsIndexed(items, key = { _, item -> "${item}-${UUID.randomUUID()}" }) { index, item ->
|
||||||
DraggableItem(dragDropState, index) { isDragging ->
|
DraggableItem(dragDropState, index) { isDragging ->
|
||||||
content(item, isDragging)
|
content(item, isDragging)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user