Skip to content

Commit aa69d22

Browse files
committed
Update some texts in the demo
1 parent cd7fdf3 commit aa69d22

File tree

1 file changed

+5
-1
lines changed
  • demo/src/commonMain/kotlin/com/huanshankeji/compose/material/demo

1 file changed

+5
-1
lines changed

demo/src/commonMain/kotlin/com/huanshankeji/compose/material/demo/Common.kt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,22 +55,26 @@ fun Common() {
5555
}
5656

5757
var count by remember { mutableStateOf(0) }
58-
BasicText("Click to add items to `LazyColumn` and `LazyRow`", Modifier.onClick { count++ })
58+
BasicText("Click to add items", Modifier.onClick { count++ })
5959
val lazyListContent: LazyListScope.() -> Unit = {
6060
item { BasicText("Item") }
6161
items(count) { index -> BasicText("Item $index") }
6262
}
63+
BasicText("`LazyColumn`")
6364
LazyColumn(Modifier.height(listSize), content = lazyListContent)
65+
BasicText("`LazyRow`")
6466
LazyRow(Modifier.width(listSize), content = lazyListContent)
6567

6668
@Composable
6769
fun ColumnOrRowContent() {
6870
BasicText("Item")
6971
repeat(count) { index -> BasicText("Item $index") }
7072
}
73+
BasicText("`Column` with scroll")
7174
Column(Modifier.height(listSize).verticalScroll(rememberScrollState())) {
7275
ColumnOrRowContent()
7376
}
77+
BasicText("`Row` with scroll")
7478
Row(Modifier.width(listSize).horizontalScroll(rememberScrollState())) {
7579
ColumnOrRowContent()
7680
}

0 commit comments

Comments
 (0)