SkillAgentSearch skills...

ThemeChangeAnimationContainer

A useful android compose animation scope, provides telegram/coolapk style theme change animation

Install / Use

/learn @fogsong233/ThemeChangeAnimationContainer
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

ThemeChangeAnimationContainer

A useful android compose animation scope, provides telegram/coolapk style theme change animation.

You can use it as this example:

// "this" is your activity instance
// it provides a scope, you can use "startThemeChangeAnime" to start animation
// warning: you should use " startThemeChangeAnime" in click event!
// ThemeChangeAnimationContainer will fill max size
// you can use "isAnimating" to get theme change animation is running, and set the startRadius to change the initial value of animation radius in the scope
ThemeChangeAnimationContainer(this) {
    Box(Modifier.clickable {
        startThemeChangeAnime {
            // do theme change
            isDarkMode.value = true
        }
    })
}
View on GitHub
GitHub Stars9
CategoryDevelopment
Updated11mo ago
Forks0

Languages

Kotlin

Security Score

77/100

Audited on May 3, 2025

No findings