From 858a0faf2a9c6bda9db393017dad8152d54331be Mon Sep 17 00:00:00 2001 From: Oleksandr Balan Date: Sun, 21 Aug 2022 10:48:04 +0200 Subject: [PATCH] Update back-page how-to-pages --- .../kotlin/eu/wewox/pagecurl/HowToPageData.kt | 23 +++++++++++++++++++ .../screens/BackPagePageCurlScreen.kt | 2 +- 2 files changed, 24 insertions(+), 1 deletion(-) diff --git a/demo/src/main/kotlin/eu/wewox/pagecurl/HowToPageData.kt b/demo/src/main/kotlin/eu/wewox/pagecurl/HowToPageData.kt index df8107a..2517d96 100644 --- a/demo/src/main/kotlin/eu/wewox/pagecurl/HowToPageData.kt +++ b/demo/src/main/kotlin/eu/wewox/pagecurl/HowToPageData.kt @@ -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", + ) + ) } } diff --git a/demo/src/main/kotlin/eu/wewox/pagecurl/screens/BackPagePageCurlScreen.kt b/demo/src/main/kotlin/eu/wewox/pagecurl/screens/BackPagePageCurlScreen.kt index b3aa6a6..a485416 100644 --- a/demo/src/main/kotlin/eu/wewox/pagecurl/screens/BackPagePageCurlScreen.kt +++ b/demo/src/main/kotlin/eu/wewox/pagecurl/screens/BackPagePageCurlScreen.kt @@ -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,