This file contains 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
//settings.gradle.kts | |
dependencyResolutionManagement { | |
repositories { | |
maven { url = uri("https://androidx.dev/snapshots/builds/11670047/artifacts/repository/") } | |
google() | |
mavenCentral() | |
maven(url = "https://plugins.gradle.org/m2/") | |
maven(url = "https://maven.pkg.jetbrains.space/public/p/compose/dev") | |
} |
This file contains 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
val animatable = remember { | |
Animatable(0.5f) | |
} | |
LaunchedEffect(key1 = true) { | |
animatable.animateTo(1f, tween(350, easing = FastOutSlowInEasing)) | |
// you can tweak out and customize these animations. | |
} | |
// add this animatable to your card's modifier graphics layer. | |
BookItem(modifier = cardMod.graphicsLayer { | |
this.scaleX = animatable.value |
This file contains 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
class MainActivity : ComponentActivity() { | |
override fun onCreate(savedInstanceState: Bundle?) { | |
super.onCreate(savedInstanceState) | |
enableEdgeToEdge() | |
setContent { | |
BorderPathTheme { | |
Scaffold(modifier = Modifier.fillMaxSize()) { innerPadding -> | |
Box( | |
modifier = Modifier | |
.fillMaxSize() |