mirror of
https://github.com/fankes/pagecurl-multiplatform.git
synced 2025-09-06 10:45:43 +08:00
Update back-page how-to-pages
This commit is contained in:
@@ -112,5 +112,28 @@ data class HowToPageData(
|
|||||||
"That is the last page, you cannot go further \uD83D\uDE09",
|
"That is the last page, you cannot go further \uD83D\uDE09",
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
val backPageHowToPages = listOf(
|
||||||
|
HowToPageData(
|
||||||
|
"Back-page configuration",
|
||||||
|
"This example demonstrates how back-page can be configured.",
|
||||||
|
),
|
||||||
|
HowToPageData(
|
||||||
|
"Custom tap",
|
||||||
|
"This example has a custom tap configured to show a settings row below. Try it and tap somewhere near the center of the page. Tap on the PageCurl to zoom back in.",
|
||||||
|
),
|
||||||
|
HowToPageData(
|
||||||
|
"Settings",
|
||||||
|
"The alpha slider configures how much content is visible on the back page. Bigger value means that page is more see-through.",
|
||||||
|
),
|
||||||
|
HowToPageData(
|
||||||
|
"Settings",
|
||||||
|
"The color value defines a color of the back-page. It is more visible is the alpha value is low.",
|
||||||
|
),
|
||||||
|
HowToPageData(
|
||||||
|
"End",
|
||||||
|
"That is the last page, you cannot go further \uD83D\uDE09",
|
||||||
|
)
|
||||||
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -50,7 +50,7 @@ import eu.wewox.pagecurl.ui.SpacingSmall
|
|||||||
@Composable
|
@Composable
|
||||||
fun BackPagePageCurlScreen() {
|
fun BackPagePageCurlScreen() {
|
||||||
Box(Modifier.fillMaxSize()) {
|
Box(Modifier.fillMaxSize()) {
|
||||||
val pages = remember { HowToPageData.shadowHowToPages }
|
val pages = remember { HowToPageData.backPageHowToPages }
|
||||||
var zoomOut by remember { mutableStateOf(false) }
|
var zoomOut by remember { mutableStateOf(false) }
|
||||||
val state = rememberPageCurlState(
|
val state = rememberPageCurlState(
|
||||||
max = pages.size,
|
max = pages.size,
|
||||||
|
Reference in New Issue
Block a user