ThemeAnimationLayoutScope

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
fun ThemeAnimationLayoutScope.ThemeSwitch(animationState: ThemeAnimationState, buttonIcon: ThemeSwitchIcon = DefaultButtonIcon, modifier: Modifier = Modifier, iconSize: DpSize = DpSize(20.dp, 20.dp), iconScale: Float = 1.0f, iconShape: Shape = RoundedCornerShape(50), iconTint: Color = MaterialTheme.colorScheme.primary, interactionSource: MutableInteractionSource? = null, indication: Indication? = LocalIndication.current)

A composable abstract switch that toggles themes in a binary or tristate transition.

Link copied to clipboard
fun ThemeAnimationLayoutScope.ThemeSwitchButton(animationState: ThemeAnimationState, buttonIcon: ThemeSwitchIcon = DefaultButtonIcon, modifier: Modifier = Modifier, iconSize: Dp = 20.dp, iconScale: Float = 1.0f, iconTint: Color = MaterialTheme.colorScheme.primary, interactionSource: MutableInteractionSource? = null, indication: Indication? = LocalIndication.current)

A composable button that toggles between light and dark themes with animation.