Update back-page how-to-pages

This commit is contained in:
Oleksandr Balan
2022-08-21 10:48:04 +02:00
parent 495f6f3651
commit 858a0faf2a
2 changed files with 24 additions and 1 deletions

View File

@@ -112,5 +112,28 @@ data class HowToPageData(
"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",
)
)
}
}

View File

@@ -50,7 +50,7 @@ import eu.wewox.pagecurl.ui.SpacingSmall
@Composable
fun BackPagePageCurlScreen() {
Box(Modifier.fillMaxSize()) {
val pages = remember { HowToPageData.shadowHowToPages }
val pages = remember { HowToPageData.backPageHowToPages }
var zoomOut by remember { mutableStateOf(false) }
val state = rememberPageCurlState(
max = pages.size,