Add examples to demo app

This commit is contained in:
Oleksandr Balan
2022-08-12 00:08:02 +02:00
parent 44a323b254
commit 53dcc8401f
14 changed files with 569 additions and 178 deletions

View File

@@ -11,7 +11,7 @@ import eu.wewox.pagecurl.ExperimentalPageCurlApi
import eu.wewox.pagecurl.config.PageCurlConfig
/**
* Shows the pages which may be rotated by drag or tap gestures.
* Shows the pages which may be turned by drag or tap gestures.
*
* @param state The state of the PageCurl. Use this to programmatically change the current page or observe changes.
* @param modifier The modifier for this composable.

View File

@@ -71,7 +71,7 @@ public class PageCurlState(
internal set
/**
* The observable progress as page is rotated.
* The observable progress as page is turned.
* When going forward it changes from 0 to 1, when going backward it is going from 0 to -1.
*/
public val progress: Float get() = internalState?.progress ?: 0f