Created
March 28, 2026 01:14
-
-
Save skydoves/3aabfb40dfb8a1808ec46cd4f1270374 to your computer and use it in GitHub Desktop.
CircularRevealPlugin implementation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @Immutable | |
| public data class CircularRevealPlugin( | |
| public val duration: Int = DefaultCircularRevealDuration, | |
| public val onFinishListener: CircularRevealFinishListener? = null, | |
| ) : ImagePlugin.PainterPlugin { | |
| @Composable | |
| override fun compose(imageBitmap: ImageBitmap, painter: Painter): Painter { | |
| return painter.rememberCircularRevealPainter( | |
| imageBitmap = imageBitmap, | |
| durationMs = duration, | |
| onFinishListener = onFinishListener, | |
| ) | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment