Package-level declarations
Types
Link copied to clipboard
data class ShakeConfig(val iterations: Int, val intensity: Float, val rotate: Float = 0.0f, val rotateX: Float = 0.0f, val rotateY: Float = 0.0f, val scaleX: Float = 0.0f, val scaleY: Float = 0.0f, val translateX: Float = 0.0f, val translateY: Float = 0.0f, val trigger: Long = System.currentTimeMillis())
Represent the configuration for a shake animation.
Link copied to clipboard
class ShakeController
Controller for managing shake animations.
Functions
Link copied to clipboard
fun Modifier.pulse(brush: Brush, enabled: Boolean = true, targetScale: Float = 1.5f, initialScale: Float = 1.0f, shape: Shape = CircleShape, animationSpec: DurationBasedAnimationSpec<Float> = tween(1000)): Modifier
fun Modifier.pulse(enabled: Boolean = true, targetScale: Float = 1.5f, initialScale: Float = 1.0f, color: Color = SparkTheme.colors.onSurface.dim3, shape: Shape = CircleShape, animationSpec: DurationBasedAnimationSpec<Float> = tween(1000)): Modifier
Applies a pulsating effect that is drawn behind the composable element. This effect creates a visual appearance where the background pulse scales up and fades out in a loop, simulating a pulsating effect.
Link copied to clipboard
Creates and remembers a ShakeController instance.
Link copied to clipboard
Applies a shake animation to the composable when triggered by the shakeController.