mirror of
https://github.com/fankes/pagecurl-multiplatform.git
synced 2025-09-07 19:14:04 +08:00
Fix PageCurl with key is missing config statement
This commit is contained in:
@@ -114,6 +114,7 @@ public fun PageCurl(
|
|||||||
key: (Int) -> Any,
|
key: (Int) -> Any,
|
||||||
modifier: Modifier = Modifier,
|
modifier: Modifier = Modifier,
|
||||||
state: PageCurlState = rememberPageCurlState(),
|
state: PageCurlState = rememberPageCurlState(),
|
||||||
|
config: PageCurlConfig = rememberPageCurlConfig(),
|
||||||
content: @Composable (Int) -> Unit
|
content: @Composable (Int) -> Unit
|
||||||
) {
|
) {
|
||||||
var lastKey by remember(state.current) { mutableStateOf(if (count > 0) key(state.current) else null) }
|
var lastKey by remember(state.current) { mutableStateOf(if (count > 0) key(state.current) else null) }
|
||||||
@@ -131,6 +132,7 @@ public fun PageCurl(
|
|||||||
PageCurl(
|
PageCurl(
|
||||||
count = count,
|
count = count,
|
||||||
state = state,
|
state = state,
|
||||||
|
config = config,
|
||||||
content = content,
|
content = content,
|
||||||
modifier = modifier,
|
modifier = modifier,
|
||||||
)
|
)
|
||||||
|
Reference in New Issue
Block a user