mirror of
https://github.com/fankes/pagecurl-multiplatform.git
synced 2025-09-05 10:15:30 +08:00
Merge pull request #22 from choristery/main
Fix PageCurl with key is missing config statement
This commit is contained in:
@@ -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,
|
||||
)
|
||||
|
Reference in New Issue
Block a user