Package-level declarations
Functions
Link copied to clipboard
fun rememberLottieIcon(animationSpec: AnimationSpec<Float>, startProgress: Float, endProgress: Float, onReadContent: suspend () -> LottieCompositionSpec): ThemeSwitchIcon.LottieFilePainter
Remembers a ThemeSwitchIcon.LottieFilePainter that loads Lottie animation from a composition specification.
Link copied to clipboard
fun rememberLottieIconJson(animationSpec: AnimationSpec<Float>, startProgress: Float, endProgress: Float, onReadContentJson: suspend () -> String): ThemeSwitchIcon.LottieFilePainter
Remembers a ThemeSwitchIcon.LottieFilePainter that loads Lottie animation from a JSON string.
Link copied to clipboard
fun ThemeSwitchButton(animationState: ThemeAnimationState, buttonIcon: ThemeSwitchIcon = DefaultButtonIcon, modifier: Modifier = Modifier, iconSize: Dp = 20.dp, iconScale: Float = 1.0f, iconTint: Color = MaterialTheme.colorScheme.primary)
A composable button that toggles between light and dark themes with animation.