File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
demo/src/commonMain/kotlin/com/huanshankeji/compose/material/demo Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments