Merge pull request #22 from choristery/main

Fix PageCurl with key is missing config statement
This commit is contained in:
Oleksandr Balan
2023-09-12 23:39:33 +02:00
committed by GitHub

View File

@@ -114,6 +114,7 @@ public fun PageCurl(
key: (Int) -> Any,
modifier: Modifier = Modifier,
state: PageCurlState = rememberPageCurlState(),
config: PageCurlConfig = rememberPageCurlConfig(),
content: @Composable (Int) -> Unit
) {
var lastKey by remember(state.current) { mutableStateOf(if (count > 0) key(state.current) else null) }
@@ -131,6 +132,7 @@ public fun PageCurl(
PageCurl(
count = count,
state = state,
config = config,
content = content,
modifier = modifier,
)