Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,12 @@ val imitateComposeUiLayoutHorizontalScrollPlatformModifier =

@Composable
actual fun rememberScrollState(initial: Int): ScrollState =
ScrollState
ScrollState()


// used to be `actual object`, but but Dokka fails with it
@Stable
actual object ScrollState
actual class ScrollState

actual fun Modifier.verticalScroll(state: ScrollState): Modifier =
platformModify { verticalScroll() }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ actual class LazyListScope {
contentType: Any?,
content: @Composable LazyItemScope.() -> Unit,
) =
addComposable { LazyItemScope.content() }
addComposable { LazyItemScope().content() }

actual fun items(
count: Int,
Expand All @@ -39,7 +39,7 @@ actual class LazyListScope {
) =
addComposable {
repeat(count) { index ->
LazyItemScope.itemContent(index)
LazyItemScope().itemContent(index)
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ import com.huanshankeji.compose.ui.Modifier
@LazyScopeMarker
@JvmDefaultWithCompatibility
*/
actual object LazyItemScope {
// used to be `actual object`, with which Dokka fails
actual class LazyItemScope {
// I am not sure whether these implementations work perfectly.

actual fun Modifier.fillParentMaxSize(
Expand Down
Loading