Skip to content

Commit a777ed5

Browse files
committed
Update sample code in documentation
1 parent 8705697 commit a777ed5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

docs/layout-composables.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ BoxGrid(
2424
Item(modifier = Modifier.row(1))
2525

2626
// It will be placed at 1, 2.
27-
Item(modifier = Modifier.column(1).row(2))
27+
Item(modifier = Modifier.position(row = 2, column = 1))
2828

2929
// It will be placed at 2, 0.
3030
Itme(modifier = Modifier.column(2))

docs/span.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ BoxGrid(
1414
) {
1515
Item(modifier = Modifier.span { BoxGridItemSpan(row = 2) })
1616
Item(modifier = Modifier.column(2))
17-
Item(modifier = Modifier.row(1).column(1).span { BoxGridItemSpan(column = 2) })
17+
Item(modifier = Modifier.position(row = 1, column = 1).span { BoxGridItemSpan(column = 2) })
1818
Item(modifier = Modifier.row(2)span { BoxGridItemSpan(column = 2) })
1919
}
2020
```

0 commit comments

Comments
 (0)