Skip to content

Commit d746f02

Browse files
committed
update README
1 parent 0ee37eb commit d746f02

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1478,7 +1478,7 @@ ReorderableColumn(
14781478

14791479
##### Passing `Modifier.draggableHandle` to a Child Composable
14801480

1481-
Since `Modifier.draggableHandle` and `Modifier.longPressDraggableHandle` can only be used in `ReorderableScope`, you may need to pass `ReorderableScope` to a child composable. For example:
1481+
Since `Modifier.draggableHandle` and `Modifier.longPressDraggableHandle` can only be used in `ReorderableListItemScope`, you may need to pass `ReorderableListItemScope` to a child composable. For example:
14821482

14831483
```kotlin
14841484
@Composable
@@ -1502,7 +1502,7 @@ fun List() {
15021502
}
15031503

15041504
@Composable
1505-
fun DragHandle(scope: ReorderableScope) {
1505+
fun DragHandle(scope: ReorderableListItemScope) {
15061506
IconButton(modifier = with(scope) { Modifier.draggableHandle() }, /* ... */)
15071507
}
15081508
```
@@ -1656,7 +1656,7 @@ ReorderableRow(
16561656

16571657
##### Passing `Modifier.draggableHandle` to a Child Composable
16581658

1659-
Since `Modifier.draggableHandle` and `Modifier.longPressDraggableHandle` can only be used in `ReorderableScope`, you may need to pass `ReorderableScope` to a child composable. For example:
1659+
Since `Modifier.draggableHandle` and `Modifier.longPressDraggableHandle` can only be used in `ReorderableListItemScope`, you may need to pass `ReorderableListItemScope` to a child composable. For example:
16601660

16611661
```kotlin
16621662
@Composable
@@ -1680,7 +1680,7 @@ fun List() {
16801680
}
16811681

16821682
@Composable
1683-
fun DragHandle(scope: ReorderableScope) {
1683+
fun DragHandle(scope: ReorderableListItemScope) {
16841684
IconButton(modifier = with(scope) { Modifier.draggableHandle() }, /* ... */)
16851685
}
16861686
```

0 commit comments

Comments
 (0)