Skip to content

Commit e65d9b2

Browse files
committed
Revert "Debug why the demo fails to run and add a workaround for it"
This reverts commit d39f6ec. This is a partial revert. `LazyColumn` was removed by mistake.
1 parent 4e4f60d commit e65d9b2

File tree

1 file changed

+8
-0
lines changed
  • compose-multiplatform-material/src/commonMain/kotlin/com/huanshankeji/compose/material

1 file changed

+8
-0
lines changed

compose-multiplatform-material/src/commonMain/kotlin/com/huanshankeji/compose/material/ListAndLazyColumn.kt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,3 +59,11 @@ expect class HeaderScope
5959

6060
@Composable
6161
expect fun List(modifierOrAttrs: ModifierOrAttrs<ListElement> = null, content: ListScope.() -> Unit)
62+
63+
/**
64+
* An alias for [List] that follows the name of [androidx.compose.foundation.lazy.LazyColumn].
65+
* The current implementation is not actually lazy on web.
66+
*/
67+
@Composable
68+
fun LazyColumn(modifierOrAttrs: ModifierOrAttrs<ListElement> = null, content: ListScope.() -> Unit) =
69+
List(modifierOrAttrs, content)

0 commit comments

Comments
 (0)