You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you want to use a non keyed item list `detectReorder` and `detectReorderAfterLongPress` will not work , use the `detectListReorder`modifier instead.
56
+
If you want to use a non keyed item list `detectReorder` and `detectReorderAfterLongPress` will not work , use the `detectListReorder`
57
+
modifier instead.
58
58
59
59
Add this modifier to your LazyList , this will make the items reorderable after long press.
60
60
@@ -67,11 +67,14 @@ LazyRow(
67
67
)
68
68
```
69
69
70
-
Use `draggedItem` for a default dragged effect or create your own.
70
+
Use the item index, instead of the key , to find the offset `state.offsetOf(idx)`
71
+
72
+
You can use `draggedItem` for a default dragged effect or create your own.
71
73
72
74
## Notes
73
-
When dragging, the existing item will be modified.
74
-
Because if this reason it`s important that the item must be part of the LazyList visible items all the time.
75
+
76
+
When dragging, the existing item will be modified. Because if this reason it`s important that the item must be part of the LazyList visible
77
+
items all the time.
75
78
76
79
This can be problematic if no drop target can be found during scrolling.
0 commit comments